changeset 1677:371e31f8d3fe

fix MoinMoinBugs/TableOfContentsUsesNonExistingIncludeLinks (ported from 1.5)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 19 Nov 2006 16:44:05 +0100
parents 0c301df3d4d0
children 20f3ec17cf9f
files MoinMoin/macro/TableOfContents.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/TableOfContents.py	Sun Nov 19 15:01:27 2006 +0100
+++ b/MoinMoin/macro/TableOfContents.py	Sun Nov 19 16:44:05 2006 +0100
@@ -101,7 +101,7 @@
                 else:
                     # no pagename?  ignore it
                     continue
-                if tmp.group("heading"):
+                if tmp.group("heading") and tmp.group("hquote"):
                     if tmp.group("htext"):
                         heading = tmp.group("htext")
                     else: