mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diff: calculate diff after newlines converting
This commit is contained in:
+4
-4
@@ -126,6 +126,10 @@ public class SvnPropertiesDiffViewer implements DiffViewer {
|
||||
String text1 = value1 != null ? value1.toString() : null;
|
||||
String text2 = value2 != null ? value2.toString() : null;
|
||||
|
||||
// TODO: show differences in line separators ?
|
||||
if (text1 != null) text1 = StringUtil.convertLineSeparators(text1);
|
||||
if (text2 != null) text2 = StringUtil.convertLineSeparators(text2);
|
||||
|
||||
List<? extends LineFragment> fragments = compareValues(text1, text2);
|
||||
|
||||
return new PropertyDiffRecord(name, text1, text2, fragments);
|
||||
@@ -236,10 +240,6 @@ public class SvnPropertiesDiffViewer implements DiffViewer {
|
||||
@NotNull List<? extends LineFragment> fragments) {
|
||||
assert before != null || after != null;
|
||||
|
||||
// TODO: show differences in line separators ?
|
||||
if (before != null) before = StringUtil.convertLineSeparators(before);
|
||||
if (after != null) after = StringUtil.convertLineSeparators(after);
|
||||
|
||||
myName = name;
|
||||
myBefore = before;
|
||||
myAfter = after;
|
||||
|
||||
Reference in New Issue
Block a user