Skip to content

Commit

Permalink
fixed row handling for tables
Browse files Browse the repository at this point in the history
  • Loading branch information
jsamsa committed Nov 23, 2008
1 parent 25e48e3 commit 23754c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion textile.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def table(self, text):
def fTable(self, match):
tatts = self.pba(match.group(1), 'table')
rows = []
for row in re.split(r'\|$', match.group(2)):
for row in [ x for x in match.group(2).split('\n') if x]:
rmtch = re.search(r'^(%s%s\. )(.*)' % (self.a, self.c), row.lstrip())
if rmtch:
ratts = self.pba(rmtch.group(1), 'tr')
Expand Down

0 comments on commit 23754c5

Please sign in to comment.