From 907c4b34b04d03d567cb5f3139236623c06bd182 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Sun, 3 Nov 2024 11:47:53 +0100 Subject: [PATCH] trim text on both ends --- texttools.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/texttools.tcl b/texttools.tcl index a5dd028..2c124e2 100755 --- a/texttools.tcl +++ b/texttools.tcl @@ -24,7 +24,7 @@ proc dedent {text} { } proc markdown_quote {text} { - set text [string trimright $text] + set text [string trim $text] return [string cat "> " [regsub -all \n $text "\n> "]] }