Closed kubukoz closed 2 years ago
Whitespace at the end of a string seems not to affect the diff result.
.show on such diffs also results in a comparison of seemingly equal strings.
.show
Reproduction:
//> using lib "com.softwaremill.diffx::diffx-core:0.8.1" import com.softwaremill.diffx.Diff object demo extends App { println(Diff[String].apply("hello", "hello\n").isIdentical) println(Diff[String].apply("hello", "hello\n").show()) println("after") }
Prints:
true hello after
Whitespace at the end of a string seems not to affect the diff result.
.show
on such diffs also results in a comparison of seemingly equal strings.Reproduction:
Prints: