Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 29944 invoked from network); 25 May 2009 18:02:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 May 2009 18:02:55 -0000 Received: (qmail 741 invoked by uid 500); 25 May 2009 18:03:08 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 636 invoked by uid 500); 25 May 2009 18:03:08 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 626 invoked by uid 99); 25 May 2009 18:03:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 May 2009 18:03:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 May 2009 18:03:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8A27B234C004 for ; Mon, 25 May 2009 11:02:45 -0700 (PDT) Message-ID: <889440226.1243274565536.JavaMail.jira@brutus> Date: Mon, 25 May 2009 11:02:45 -0700 (PDT) From: =?utf-8?Q?Kamil_P=C3=A1ral_=28JIRA=29?= To: issues@commons.apache.org Subject: [jira] Commented: (CLI-176) Long descriptions wrap incorrectly In-Reply-To: <1372517257.1236193796346.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CLI-176?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1271276= 1#action_12712761 ]=20 Kamil P=C3=A1ral commented on CLI-176: --------------------------------- Yes it is now fixed, thank you. > Long descriptions wrap incorrectly > ---------------------------------- > > Key: CLI-176 > URL: https://issues.apache.org/jira/browse/CLI-176 > Project: Commons CLI > Issue Type: Bug > Components: Help formatter > Affects Versions: 1.1 > Environment: Ubuntu 8.10, Java 6 Update 10. > Reporter: Kamil P=C3=A1ral > Fix For: 1.2 > > Attachments: bug.png > > Original Estimate: 1h > Remaining Estimate: 1h > > When some option has a really long description (at least 3 lines), it wra= ps incorrectly. See attached picture, it's a total mess. > The problem is, you have default width set to 74 characters. But when you= are printing the second line of the description, you forget to count also = the preceding white space into the 74 characters. Therefore the second line= wraps into a third line. After all 74 characters are printed, you start ag= ain on fourth line with a correct preceding white space. And over and over = again. > This fix should be really easy. Just count the whitespace. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.