# HG changeset patch # User Paul Boddie # Date 1385673403 -3600 # Node ID f29c407084c5ff5b6e95ef58d1ecf831ee93047b # Parent a375db33ecc38e6596c752f970eda37a1d2bc904 Reverted heading regular expression import since MoinSupport's version does not exclude spaces from headings. diff -r a375db33ecc3 -r f29c407084c5 MoinContentSupport.py --- a/MoinContentSupport.py Mon Nov 11 13:36:18 2013 +0100 +++ b/MoinContentSupport.py Thu Nov 28 22:16:43 2013 +0100 @@ -8,7 +8,6 @@ @license: GNU GPL (v2 or later), see COPYING.txt for details. """ -from MoinSupport import heading_regexp_str from MoinMoin.wikiutil import escape import re @@ -16,6 +15,7 @@ # Regular expressions. +heading_regexp_str = r"^(?P=+)\s*(?P.*?)\s*(?P=level)$" hrule_regexp_str = r"^----$" include_regexp_str = r"^\s*<>$" section_regexp_str = "(" + heading_regexp_str + "|" + hrule_regexp_str + "|" + include_regexp_str + ")"