Skip to content

Commit

Permalink
fix: trim space
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jul 25, 2024
1 parent edd5b00 commit cad11a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/pager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cad11a9

Please sign in to comment.