]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
rewrite_descriptor(): Fix bug that dropped the first TEXT node from
authorFred Drake <fdrake@acm.org>
Fri, 20 Aug 1999 14:28:29 +0000 (14:28 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 20 Aug 1999 14:28:29 +0000 (14:28 +0000)
commitabf8a1daa8fde8030b6d5f5c5bad4aed94091525
tree9cfc4ffc224c51fd16107f2233c836a6e2f34b75
parentf2e9e2978e8f628c83d774aa03ce715bd8f319b4
rewrite_descriptor():  Fix bug that dropped the first TEXT node from
                       <description> elements.  Add another sanity
                       check to make sure a special case only becomes
                       involved for <opcodedesc> and <opcodedescni>
                       elements.

fixup_paras_helper():  Clean up control flow.

Everywhere that checks node.nodeType==ELEMENT and node.tagName now
just check node.nodeName (nodeName is guaranteed for all node types
and will be special values that don't conflict with GIs for
non-ELEMENT nodes).  Simplifies a number of tests and improves
readability in a lot of places.
Doc/tools/sgmlconv/docfixer.py