diff options
author | Fred Drake <fdrake@acm.org> | 2001-07-06 21:03:30 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-07-06 21:03:30 (GMT) |
commit | dde993c15d179cf3778814cf5744f259bfffd76c (patch) | |
tree | ee53d54754696df12ef2afb5a8e4e05fd5a8e7ab | |
parent | b5fc0ab09937c429ee3dc77cb345269cde0367b7 (diff) | |
download | cpython-dde993c15d179cf3778814cf5744f259bfffd76c.zip cpython-dde993c15d179cf3778814cf5744f259bfffd76c.tar.gz cpython-dde993c15d179cf3778814cf5744f259bfffd76c.tar.bz2 |
Simplification to mirror a better conversion specification and more
powerful latex2esis.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: |