You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ba...@apache.org on 2006/06/06 21:51:09 UTC

svn commit: r412201 - /jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/util/HelpFormatter.java

Author: bayard
Date: Tue Jun  6 12:51:08 2006
New Revision: 412201

URL: http://svn.apache.org/viewvc?rev=412201&view=rev
Log:
Applying patch from CLI-96 to make printWrapped public

Modified:
    jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/util/HelpFormatter.java

Modified: jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/util/HelpFormatter.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/util/HelpFormatter.java?rev=412201&r1=412200&r2=412201&view=diff
==============================================================================
--- jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/util/HelpFormatter.java (original)
+++ jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/util/HelpFormatter.java Tue Jun  6 12:51:08 2006
@@ -279,13 +279,15 @@
      * Prints a string wrapped if necessary
      * @param text the string to wrap
      */
-    protected void printWrapped(final String text) {
+    public void printWrapped(final String text) {
         for (final Iterator i = wrap(text, pageWidth).iterator(); i.hasNext();) {
             printGutterLeft();
             pad((String) i.next(), pageWidth, out);
             printGutterRight();
             out.println();
         }
+
+        out.flush();
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org