Skip to content

Commit 7303319

Browse files
committed
handle thread dump files with Windows (CR/LF) line-ends
1 parent 990a8d8 commit 7303319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visualvm/threaddump/src/org/graalvm/visualvm/threaddump/impl/ThreadDumpView.java

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

0 commit comments

Comments
 (0)