Skip to content

Commit 3e059fc

Browse files
committed
Fix to properly output linebreaks of diff
1 parent 67bf6a8 commit 3e059fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hooks/jsonnet-fmt-hook/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func summarizeDiff(diffs []diffmatchpatch.Diff) *FileDiff {
7676
}
7777
}
7878
splitLines := func(text string) []string {
79-
return strings.Split(strings.TrimSpace(strings.ReplaceAll(text, "\r\n", "\n")), "\n")
79+
return strings.Split(strings.ReplaceAll(text, "\r\n", "\n"), "\n")
8080
}
8181

8282
const maxShowLine = 3

0 commit comments

Comments
 (0)