Fix bug which prevents detecting of red_fam sectionheading when there is whitespace after closing heading tags (===)

This commit is contained in:
2015-09-11 22:27:25 +02:00
parent 90da231712
commit deaa1d855b

View File

@@ -62,7 +62,7 @@ class RED_FAM_PARSER( RED_FAM ):
__timestamp_format2 = "%H:%M, %d. %b %Y (%Z)" # Catch missing point after month abreviation __timestamp_format2 = "%H:%M, %d. %b %Y (%Z)" # Catch missing point after month abreviation
# Define section heading re.pattern # Define section heading re.pattern
__sectionhead_pat = re.compile( r"^=+.*\[\[.+\]\].*\[\[.+\]\].*=+$" ) __sectionhead_pat = re.compile( r"^=+.*\[\[.+\]\].*\[\[.+\]\].*=+" )
# Define timestamp re.pattern # Define timestamp re.pattern
__timestamp_pat = re.compile( r"(\d{2}:\d{2}, \d{1,2}. (Jan|Feb|Mär|Apr|Mai|Jun|Jul|Aug|Sep|Okt|Nov|Dez).? \d{4} \(CES?T\))" ) __timestamp_pat = re.compile( r"(\d{2}:\d{2}, \d{1,2}. (Jan|Feb|Mär|Apr|Mai|Jun|Jul|Aug|Sep|Okt|Nov|Dez).? \d{4} \(CES?T\))" )