Skip to content

Commit

Permalink
fix NormalizeNewlines() to actually work
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Mar 28, 2024
1 parent 8d53b25 commit 4d01890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d01890

Please sign in to comment.