From 0477a0c8a08b0f9b0ada8d22090a8bb6915085f7 Mon Sep 17 00:00:00 2001 From: Carina de Oliveira Antunes Date: Tue, 26 Mar 2024 20:49:50 +0100 Subject: [PATCH] convert_td: strip text (#91) --- markdownify/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdownify/__init__.py b/markdownify/__init__.py index a60400c..eaa58c1 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -370,7 +370,7 @@ class MarkdownConverter(object): 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 + ' |'