Skip to content

Commit 0477a0c

Browse files
authored
convert_td: strip text (#91)
1 parent f33ccd7 commit 0477a0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

markdownify/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def convert_table(self, el, text, convert_as_inline):
370370
return '\n\n' + text + '\n'
371371

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

375375
def convert_th(self, el, text, convert_as_inline):
376376
return ' ' + text + ' |'

0 commit comments

Comments
 (0)