Skip to content

Commit d1121d3

Browse files
committed
Adjusting so that long lines are mercilessly cut off at the maxwidth and continued as before on the following line.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/branches/cli-1.x@745725 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2ddaae1 commit d1121d3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/java/org/apache/commons/cli/HelpFormatter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -832,9 +832,7 @@ protected StringBuffer renderWrappedText(StringBuffer sb, int width,
832832
}
833833

834834
if ( (text.length() > width) && (pos == nextLineTabStop - 1) ) {
835-
sb.append(text);
836-
837-
return sb;
835+
pos = width;
838836
}
839837

840838
sb.append(rtrim(text.substring(0, pos))).append(defaultNewLine);

0 commit comments

Comments
 (0)