From cad11a9ad4aa6dd33ea5d5936cd0df8131f2b5a4 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 25 Jul 2024 09:30:26 -0400 Subject: [PATCH] fix: trim space --- ui/pager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/pager.go b/ui/pager.go index c4c22d44..1fd7c03b 100644 --- a/ui/pager.go +++ b/ui/pager.go @@ -440,7 +440,7 @@ func glamourRender(m pagerModel, markdown string) (string, error) { content.WriteString(lineNumberStyle(fmt.Sprintf("%"+fmt.Sprint(lineNumberWidth)+"d", i+1))) content.WriteString(trunc(s)) } else { - content.WriteString(strings.TrimSpace(s)) + content.WriteString(s) } // don't add an artificial newline after the last split