]> granicus.if.org Git - python/commit
bwrite(), ewrite(): Helpers for diagnostic output; essentially the
authorFred Drake <fdrake@acm.org>
Mon, 2 Aug 1999 14:46:15 +0000 (14:46 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 2 Aug 1999 14:46:15 +0000 (14:46 +0000)
commit080c1b5af693afd471728e7fa66f744a61e75ed4
tree584894ee7a50bb4d0bfcc7f4af91a9f75ab46245
parent4fbdf9779c968cf0827c3191dd4a00361d2354fc
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.
Doc/tools/sgmlconv/docfixer.py