Skip to content

Commit 8c6679e

Browse files
committed
1 parent 4c1a0bc commit 8c6679e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/github/difflib/unifieddiff/UnifiedDiffWriter.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ public static void write(UnifiedDiff diff, Writer writer) throws IOException {
4040
}
4141

4242
}
43-
44-
writer.write(diff.getTail());
43+
if (diff.getTail() != null) {
44+
writer.write("--\n" + diff.getTail());
45+
}
4546
}
4647

4748
private static void writeOrNothing(Writer writer, String str) throws IOException {

0 commit comments

Comments
 (0)