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

Fred L. Drake fdrake@weyr.cnri.reston.va.us
Mon, 2 Aug 1999 10:46:16 -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:

bwrite(), ewrite():  Helpers for diagnostic output; essentially the
		same as sys.stderr.write(), but bwrite() will make it
		bold if stderr is a tty (for visibility).

		Use these everywhere instead of accessing
		sys.stderr.write() directly.

find_all_child_elements():  Find all elements by type name that are
		immediate children of another.

cleanup_synopses():  Receive both the document and fragment objects as 
		parameters; if only the document is passed, synopsis
		information is never found since it's in the fragment!

build_para():	Add a chunk of code to ensure that a newline always
		follows the </para> end-tag.  Not really important, but 
		makes presentation consistent for authoring/
		maintenance.

fixup_bifuncindexes_chunk(): Use find_all_child_elements() instead of
		find_all_elements() so we don't work with too many
		levels at once; that could cause DOM exceptions with
		the <elem>.removeChild() method.