Add fix for empty last field for the wiki grabber.

Whether or not the last field can be empty is a property of the field
and not of the record terminator.
This commit is contained in:
Mark de Wever 2011-07-30 10:42:55 +00:00
parent f464421d15
commit 340e0fe16a

View file

@ -81,7 +81,8 @@ if __name__ == "__main__":
# The solution is to make the whitespace optional and assert the
# character before the ampersand is whitespace.
re_field_separator = '\s*(?:(?<=\s))&\s+'
re_record_end = '\s+\$$'
# Same issue as with the re_field_separator but then with '...foo & $'
re_record_end = '\s*(?:(?<=\s))\$$'
re_variable = '([a-zA-Z]\w*)'
re_string = '(.+?)'