2013-11-11 | Paul Boddie | raw files shortlog changelog graph | Exposed the heading regular expression pattern. | |
MoinSupport.py (file) |
1.1 --- a/MoinSupport.py Wed Oct 30 15:38:24 2013 +0100 1.2 +++ b/MoinSupport.py Mon Nov 11 13:42:06 2013 +0100 1.3 @@ -45,7 +45,8 @@ 1.4 1.5 # Extraction of headings. 1.6 1.7 -heading_regexp = re.compile(r"^(?P<level>=+)(?P<heading>.*?)(?P=level)$", re.UNICODE | re.MULTILINE) 1.8 +heading_regexp_str = r"^(?P<level>=+)(?P<heading>.*?)(?P=level)$" 1.9 +heading_regexp = re.compile(heading_regexp_str, re.UNICODE | re.MULTILINE) 1.10 1.11 # Category extraction from pages. 1.12