# HG changeset patch # User Doug Simon # Date 1380812830 -7200 # Node ID b168635707b561609be7a9d809cbe91926ce6969 # Parent e0eb7619433fda22cf8e9337528b56deee6e7f8a fix line wrapping issue when printing help for options diff -r e0eb7619433f -r b168635707b5 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotOptions.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotOptions.java Thu Oct 03 11:17:43 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotOptions.java Thu Oct 03 17:07:10 2013 +0200 @@ -210,7 +210,7 @@ if (line.length() != 0) { line.append(' '); } - String[] embeddedLines = chunk.split("%n"); + String[] embeddedLines = chunk.split("%n", -2); if (embeddedLines.length == 1) { line.append(chunk); } else {