Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Split lines prior to diffing #272

Merged
merged 1 commit into from
Nov 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions util/diff_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ func DiffFile(image1, image2 *pkgutil.Image, filename string) (*FileNameDiff, er
}

//Carry on with diffing, make string array for difflib requirements
image1Contents := []string{string(*image1FileContents)}
image2Contents := []string{string(*image2FileContents)}
image1Contents := difflib.SplitLines(string(*image1FileContents))
image2Contents := difflib.SplitLines(string(*image2FileContents))

//Run diff
diff := difflib.UnifiedDiff{
Expand Down