Skip to content

Commit 7c47121

Browse files
committed
handle thread dump files with Windows (CR/LF) line-ends
1 parent 33b8513 commit 7c47121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visualvm/threaddump/src/com/sun/tools/visualvm/threaddump/impl/ThreadDumpView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private static String htmlize(String value) {
143143
private static String transform(String value) {
144144
String alternateColor = !UISupport.isDarkResultsBackground() ? "#0033CC" : "#FFCC33"; // NOI18N
145145
StringBuilder sb = new StringBuilder();
146-
String[] result = value.split("\\n"); // NOI18N
146+
String[] result = value.split("\\r?\\n"); // NOI18N
147147
for (int i = 0; i < result.length; i++) {
148148
String line = result[i];
149149
if (!line.isEmpty() && !Character.isWhitespace(line.charAt(0))) {

0 commit comments

Comments
 (0)