TreeFormatter should always use '\n' as line separator string

Currently the TreeFormatter is using 'PrintWriter#println()' to
write the line separator string to terminate the current line. This
method prints the line separator string that is defined by the system
property 'line.separator'. This line separator string may be
different from '\n' (e.g. on Windows it's '\r\n').

Since the formatting of the tree printed out by the TreeFormatter
should be always the same this change ensures that the TreeFormatter
now always prints '\n' as line separator string.

Change-Id: I1d1959ecba0786cf2ed58feebba7cfcbf18ac062
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2012-01-03 10:44:05 +01:00
parent 40deadacd2
commit f0d93fb814

View File

@@ -81,6 +81,6 @@ public class TreeFormatter {
} else {
stdout.print(NOT_VISIBLE_NODE);
}
stdout.println();
stdout.print("\n");
}
}