Prevent overwriting of ending with None by only calling RED_FAM_PARSER if there was no ending before

This commit is contained in:
2015-09-11 13:01:04 +02:00
parent 4f7cfc65cc
commit 31ea512c41

View File

@@ -104,9 +104,8 @@ class RED_PAGE:
# Check if we have alredy recognized the beginning date of the discussion (in former iteration) or if we have a done-notice
if not beginning:
beginning = RED_FAM_PARSER.is_beginning( line )
else:
elif not ending:
ending = RED_FAM_PARSER.is_ending( line )
# Increment line counter
i += 1
else: