From: Fred Drake Date: Fri, 6 Jul 2001 21:03:30 +0000 (+0000) Subject: Simplification to mirror a better conversion specification and more X-Git-Tag: v2.2a3~1317 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dde993c15d179cf3778814cf5744f259bfffd76c;p=thirdparty%2FPython%2Fcpython.git Simplification to mirror a better conversion specification and more powerful latex2esis.py. --- diff --git a/Doc/tools/sgmlconv/docfixer.py b/Doc/tools/sgmlconv/docfixer.py index 463276b0676e..867ec5073a4c 100755 --- a/Doc/tools/sgmlconv/docfixer.py +++ b/Doc/tools/sgmlconv/docfixer.py @@ -190,12 +190,7 @@ def rewrite_descriptor(doc, descriptor): # # 1. descname = descriptor.tagName - index = 1 - if descname[-2:] == "ni": - descname = descname[:-2] - descriptor.setAttribute("index", "no") - set_tagName(descriptor, descname) - index = 0 + index = descriptor.getAttribute("name") != "no" desctype = descname[:-4] # remove 'desc' linename = desctype + "line" if not index: