fix: prevent unicode placeholder inside rulerfile (#2498)
This commit is contained in:
1 parent
7a3591c834
commit
1f6af3cee5
1 file changed
+1
-1
@@ -78,7 +78,7 @@ func renderRuler(ruler *template.Template, data rulerData, width int) (string, s
|
|||||||
return "", "", err
|
return "", "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
s := strings.ReplaceAll(b.String(), "\n", "")
|
s := strings.NewReplacer("\r", "", "\n", "").Replace(b.String())
|
||||||
sections := strings.Split(s, "\x1f")
|
sections := strings.Split(s, "\x1f")
|
||||||
|
|
||||||
if len(sections) == 1 {
|
if len(sections) == 1 {
|
||||||
|
|||||||
Reference in new issue
Block a user