From 4d01890c35c0cf922b9a9d50a99e4e4a29934fe7 Mon Sep 17 00:00:00 2001 From: Krzysztof Kowalczyk Date: Thu, 28 Mar 2024 16:57:02 +0000 Subject: [PATCH] fix NormalizeNewlines() to actually work --- parser/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/parser.go b/parser/parser.go index 57f5d1d..f0a0d9c 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -907,7 +907,7 @@ func isListItem(d ast.Node) bool { } func NormalizeNewlines(d []byte) []byte { - res := make([]byte, 0, len(d)) + res := make([]byte, len(d)) copy(res, d) d = res wi := 0