diff options
Diffstat (limited to 'Doc/tools/sgmlconv/docfixer.py')
-rwxr-xr-x | Doc/tools/sgmlconv/docfixer.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Doc/tools/sgmlconv/docfixer.py b/Doc/tools/sgmlconv/docfixer.py index 463276b..867ec50 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: |