1.1 --- a/ImprovedTableParser.py Wed Jul 11 00:47:30 2012 +0200
1.2 +++ b/ImprovedTableParser.py Fri Jul 13 00:39:56 2012 +0200
1.3 @@ -23,6 +23,7 @@
1.4 # Within text:
1.5 "markers" : (r"([{]{3,}|[}]{3,})", re.MULTILINE | re.DOTALL), # {{{... or }}}...
1.6 "columns" : (r"\|\|[ \t]*", 0), # || ws-excl-nl
1.7 + "continuations" : (r"^\s*\.\.[ \t]?", re.MULTILINE), # .. ws-excl-nl
1.8
1.9 # At start of column text:
1.10 "column" : (r"^\s*<(.*?)>\s*(.*)", re.DOTALL), # ws < attributes > ws
1.11 @@ -124,6 +125,10 @@
1.12
1.13 for text in patterns["columns"].split(row_text):
1.14
1.15 + # Replace line continuation strings.
1.16 +
1.17 + text = patterns["continuations"].sub("", text)
1.18 +
1.19 # Only create a new column when a boundary has been found.
1.20
1.21 if not column_continued: