From 314949d045b4f6fbe86ec0fe53807c577f518388 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 26 Aug 2023 19:03:11 -0400 Subject: [PATCH] the zalgo filter was accidentally eating newlines too --- skulduggery.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/skulduggery.go b/skulduggery.go index c8f669c..1f90cef 100644 --- a/skulduggery.go +++ b/skulduggery.go @@ -29,6 +29,9 @@ func demoji(s string) string { zw := false for _, c := range s { + if c == '\n' { + continue + } if runewidth.RuneWidth(c) == 0 { zw = true break