[Python-checkins] CVS: python/dist/src/Doc/tools/sgmlconv docfixer.py

Fred L. Drake fdrake@weyr.cnri.reston.va.us
Fri, 20 Aug 1999 10:28:29 -0400 (EDT)


Update of /projects/cvsroot/python/dist/src/Doc/tools/sgmlconv
In directory weyr:/home/fdrake/projects/python/Doc/tools/sgmlconv

Modified Files:
	docfixer.py 
Log Message:

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.