From 20fc18ddcc0a8d18993aadf7413aeb6ca0395e7c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 27 Jun 2013 11:27:23 +0200 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/ArgParser.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ArgParser.java b/src/ArgParser.java index dbddd07..6983f19 100644 --- a/src/ArgParser.java +++ b/src/ArgParser.java @@ -836,7 +836,7 @@ public class ArgParser if (maxfirstlen < opt.alternatives[0].length()) maxfirstlen = opt.alternatives[0].length(); } - empty += " "; + String empty = " "; while (empty.length() < maxfirstlen) empty += empty; empty = empty.substring(0, maxfirstlen); @@ -875,8 +875,7 @@ public class ArgParser col += 8 - ((col - 4) & 7); int index = 0; - if (maxfirstlen == 0) - empty = " "; + empty += " "; while (empty.length() < col) empty += empty; empty = empty.substring(0, col); -- cgit v1.2.3-70-g09d2