Author: bayard
Date: Thu Feb 19 05:06:16 2009
New Revision: 745725
URL: http://svn.apache.org/viewvc?rev=745725&view=rev
Log:
Adjusting so that long lines are mercilessly cut off at the maxwidth and
continued as before on the following line.
Modified:
commons/proper/cli/branches/cli-1.x/src/java/org/apache/commons/cli/HelpFormatter.java
Modified:
commons/proper/cli/branches/cli-1.x/src/java/org/apache/commons/cli/HelpFormatter.java
URL:
http://svn.apache.org/viewvc/commons/proper/cli/branches/cli-1.x/src/java/org/apache/commons/cli/HelpFormatter.java?rev=745725&r1=745724&r2=745725&view=diff
==============================================================================
---
commons/proper/cli/branches/cli-1.x/src/java/org/apache/commons/cli/HelpFormatter.java
(original)
+++
commons/proper/cli/branches/cli-1.x/src/java/org/apache/commons/cli/HelpFormatter.java
Thu Feb 19 05:06:16 2009
@@ -832,9 +832,7 @@
}
if ( (text.length() > width) && (pos == nextLineTabStop - 1) ) {
- sb.append(text);
-
- return sb;
+ pos = width;
}
sb.append(rtrim(text.substring(0, pos))).append(defaultNewLine);