mirror of https://github.com/python/cpython
Simplification to mirror a better conversion specification and more
powerful latex2esis.py.
This commit is contained in:
parent
b5fc0ab099
commit
dde993c15d
|
@ -190,12 +190,7 @@ def rewrite_descriptor(doc, descriptor):
|
||||||
#
|
#
|
||||||
# 1.
|
# 1.
|
||||||
descname = descriptor.tagName
|
descname = descriptor.tagName
|
||||||
index = 1
|
index = descriptor.getAttribute("name") != "no"
|
||||||
if descname[-2:] == "ni":
|
|
||||||
descname = descname[:-2]
|
|
||||||
descriptor.setAttribute("index", "no")
|
|
||||||
set_tagName(descriptor, descname)
|
|
||||||
index = 0
|
|
||||||
desctype = descname[:-4] # remove 'desc'
|
desctype = descname[:-4] # remove 'desc'
|
||||||
linename = desctype + "line"
|
linename = desctype + "line"
|
||||||
if not index:
|
if not index:
|
||||||
|
|
Loading…
Reference in New Issue