fix: prevent unicode placeholder inside rulerfile (#2498)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2026-04-08 12:59:35 +02:00
1 parent 7a3591c834
commit 1f6af3cee5
1 file changed
+1 -1
+1 -1
View File
@@ -78,7 +78,7 @@ func renderRuler(ruler *template.Template, data rulerData, width int) (string, s
return "", "", err
}
s := strings.ReplaceAll(b.String(), "\n", "")
s := strings.NewReplacer("\r", "", "\n", "").Replace(b.String())
sections := strings.Split(s, "\x1f")
if len(sections) == 1 {