fix: ignore newlines when printing with ruler file (#2319)

* fix: ignore newlines when printing with ruler file

* Update `CHANGELOG.md`
This commit is contained in:
Joe Lim authored and GitHub committed 2025-12-23 18:22:07 +11:00
1 parent 9dac520497
commit d607bdc04e
2 files changed
+2 -2

No files matched your search

+1 -2
View File
@@ -76,8 +76,7 @@ func renderRuler(ruler *template.Template, data rulerData, width int) (string, s
return "", "", err
}
s := strings.TrimSuffix(b.String(), "\n")
s = strings.ReplaceAll(s, "\n", "\033[0;7m\\n\033[0m")
s := strings.ReplaceAll(b.String(), "\n", "")
sections := strings.Split(s, "\x1f")
if len(sections) == 1 {