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:
parent
f464421d15
commit
340e0fe16a
1 changed files with 2 additions and 1 deletions
|
@ -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 = '(.+?)'
|
||||
|
|
Loading…
Add table
Reference in a new issue