Skip to content

Commit

Permalink
adjust the diffPrinter output format
Browse files Browse the repository at this point in the history
  • Loading branch information
XJ114514 committed Oct 9, 2024
1 parent bcd0608 commit cc69bfb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ static void printDiff(PrintWriter out, String expected, String actual) {
out.println("| expected | actual |");
out.println("| -------- | ------ |");
for (DiffRow row : rows) {
out.printf(" | %s | %s | \n", row.getOldLine(), row.getNewLine());
out.printf("| %s | %s |", row.getOldLine(), row.getNewLine());
out.println();
}
}
}

0 comments on commit cc69bfb

Please sign in to comment.