2013-11-11 | Paul Boddie | raw files shortlog changelog graph | Exposed the heading regular expression pattern. | subpage-items |
MoinSupport.py (file) |
1.1 --- a/MoinSupport.py Thu Nov 07 23:29:00 2013 +0100 1.2 +++ b/MoinSupport.py Mon Nov 11 13:42:55 2013 +0100 1.3 @@ -43,7 +43,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