Skip to content

Commit

Permalink
convert_td: strip text (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
carantunes authored Mar 26, 2024
1 parent f33ccd7 commit 0477a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markdownify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def convert_table(self, el, text, convert_as_inline):
return '\n\n' + text + '\n'

def convert_td(self, el, text, convert_as_inline):
return ' ' + text + ' |'
return ' ' + text.strip() + ' |'

def convert_th(self, el, text, convert_as_inline):
return ' ' + text + ' |'
Expand Down

0 comments on commit 0477a0c

Please sign in to comment.