From 8ef046b674143495b67d435760873699ad17f2f1 Mon Sep 17 00:00:00 2001 From: Taco de Wolff Date: Thu, 22 Aug 2019 14:19:17 -0400 Subject: [PATCH] UTF8 runes do not contain 0x0A --- util.go | 1 - 1 file changed, 1 deletion(-) diff --git a/util.go b/util.go index b3e8e39..8e28c2c 100644 --- a/util.go +++ b/util.go @@ -161,7 +161,6 @@ func TrimWhitespace(b []byte) []byte { // ReplaceMultipleWhitespace replaces character series of space, \n, \t, \f, \r into a single space or newline (when the serie contained a \n or \r). func ReplaceMultipleWhitespace(b []byte) []byte { - // TODO: does not work with UTF8 runes that contain \x0A for example j := 0 prevWS := false hasNewline := false