I have created a patch for the problem described in bug report 14274.
Index: src/main/org/apache/tools/ant/Main.java
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/Main.java,v
retrieving revision 1.73
diff -u -r1.73 Main.java
--- src/main/org/apache/tools/ant/Main.java     25 Jul 2002 15:21:01 -0000      
1.73
+++ src/main/org/apache/tools/ant/Main.java     5 Nov 2002 23:39:07 -0000
@@ -929,7 +929,10 @@
         String lSep = System.getProperty("line.separator");
         // got a bit annoyed that I couldn't find a pad function
         String spaces = "    ";
-        while (spaces.length() < maxlen) {
+        // Padding for at most maxlen+1 characters so we need extra
+        // spaces if length equals maxlen (martijn kruithof).
+        // Assumes that task name is at least 1 character long.
+        while (spaces.length() <= maxlen) {
             spaces += spaces;
         }
         StringBuffer msg = new StringBuffer();

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to