all repos — honk @ 086ef00fc699e98fd6f668bb29bfb4b2f2c61c22

my fork of honk

the zalgo filter was accidentally eating newlines too
Ted Unangst tedu@tedunangst.com
Sat, 26 Aug 2023 19:03:11 -0400
commit

086ef00fc699e98fd6f668bb29bfb4b2f2c61c22

parent

bb83b2dd280df6d9acf938a71c9714d495ae03d0

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M skulduggery.goskulduggery.go

@@ -29,6 +29,9 @@ s = re_moredumb.ReplaceAllString(s, ".")

zw := false for _, c := range s { + if c == '\n' { + continue + } if runewidth.RuneWidth(c) == 0 { zw = true break