Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 98793 invoked from network); 21 Jul 2010 13:30:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Jul 2010 13:30:50 -0000 Received: (qmail 74660 invoked by uid 500); 21 Jul 2010 13:30:49 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 74418 invoked by uid 500); 21 Jul 2010 13:30:47 -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 74410 invoked by uid 99); 21 Jul 2010 13:30:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jul 2010 13:30:46 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jul 2010 13:30:44 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6LDMqAM013489 for ; Wed, 21 Jul 2010 13:22:52 GMT Message-ID: <27294287.496031279718572462.JavaMail.jira@thor> Date: Wed, 21 Jul 2010 09:22:52 -0400 (EDT) From: "Uri Moszkowicz (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (CLI-207) The HelpFormatter class strips leading whitespaces MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org The HelpFormatter class strips leading whitespaces -------------------------------------------------- Key: CLI-207 URL: https://issues.apache.org/jira/browse/CLI-207 Project: Commons CLI Issue Type: Bug Components: CLI-2.x Affects Versions: 1.2 Reporter: Uri Moszkowicz I discovered a bug in Commons CLI while using it through Groovy's CliBuilder. See the following issue: http://jira.codehaus.org/browse/GROOVY-4313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel Copied: The following code: def cli = new CliBuilder(footer: "line1:\n line2:\n") cli.usage() Produces the following output: line1 line2 Note that there are no whitespaces before "line2". Replacing them with "\t" doesn't solve the problem either. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.