Skip to content

Commit

Permalink
Update markdown2.py
Browse files Browse the repository at this point in the history
  • Loading branch information
raulbocanegra authored Dec 17, 2024
1 parent 381f60f commit eea893c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/markdown2.py
Original file line number Diff line number Diff line change
Expand Up @@ -3418,7 +3418,7 @@ def sub(self, match: re.Match) -> str:
body = body.strip('\n')
if body:
hlines.append('<tbody>')
for line in body.strip('\n').split('\n'):
for line in body.split('\n'):
hlines.append('<tr>')
cols = [re.sub(escape_bar_re, '|', cell.strip()) for cell in re.split(split_bar_re, re.sub(trim_bar_re, "", re.sub(trim_space_re, "", line)))]
for col_idx, col in enumerate(cols):
Expand Down

0 comments on commit eea893c

Please sign in to comment.