From cf9549854fb1e1e09128b30e9cada480d27761e3 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Mon, 6 Aug 2007 02:02:00 +0000 Subject: [PATCH] generated markup fixes --- doc/build/read_markdown.py | 3 ++- doc/build/templates/toc.html | 16 ++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/doc/build/read_markdown.py b/doc/build/read_markdown.py index 288b7b6ac0..53b5b12a85 100644 --- a/doc/build/read_markdown.py +++ b/doc/build/read_markdown.py @@ -35,7 +35,8 @@ def dump_tree(elem, stream): dump_tree(child, stream) if child.tail: stream.write(child.tail) - stream.write("" % elem.tag) + if elem.tag != 'html': + stream.write("" % elem.tag) def dump_mako_tag(elem, stream): tag = elem.tag[5:] diff --git a/doc/build/templates/toc.html b/doc/build/templates/toc.html index f4ea353ec1..ab42afc0ed 100644 --- a/doc/build/templates/toc.html +++ b/doc/build/templates/toc.html @@ -22,19 +22,23 @@ <%def name="printtoc(root, paged, extension, current=None, children=True, anchor_toplevel=False)"> + % if root.children: + % endif -- 2.47.3