[jira] Created: (CLI-207) The HelpFormatter class strips leading whitespaces

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CLI-207) The HelpFormatter class strips leading whitespaces

Gilles (Jira)
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.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CLI-207) The HelpFormatter class strips leading whitespaces

Gilles (Jira)

     [ https://issues.apache.org/jira/browse/CLI-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated CLI-207:
-------------------------------

    Fix Version/s: 1.3
      Component/s: Help formatter
                       (was: CLI-2.x)

> 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: Help formatter
>    Affects Versions: 1.2
>            Reporter: Uri Moszkowicz
>             Fix For: 1.3
>
>
> 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.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CLI-207) HelpFormatter strips leading whitespaces in the footer

Gilles (Jira)
In reply to this post by Gilles (Jira)

     [ https://issues.apache.org/jira/browse/CLI-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated CLI-207:
-------------------------------

    Summary: HelpFormatter strips leading whitespaces in the footer  (was: The HelpFormatter class strips leading whitespaces)

> HelpFormatter strips leading whitespaces in the footer
> ------------------------------------------------------
>
>                 Key: CLI-207
>                 URL: https://issues.apache.org/jira/browse/CLI-207
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: Help formatter
>    Affects Versions: 1.2
>            Reporter: Uri Moszkowicz
>             Fix For: 1.3
>
>
> 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.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (CLI-207) HelpFormatter strips leading whitespaces in the footer

Gilles (Jira)
In reply to this post by Gilles (Jira)

     [ https://issues.apache.org/jira/browse/CLI-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg resolved CLI-207.
--------------------------------

    Resolution: Fixed

Thank you for the report Uri. It's now fixed on the trunk and will be part of the 1.3 release.

> HelpFormatter strips leading whitespaces in the footer
> ------------------------------------------------------
>
>                 Key: CLI-207
>                 URL: https://issues.apache.org/jira/browse/CLI-207
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: Help formatter
>    Affects Versions: 1.2
>            Reporter: Uri Moszkowicz
>             Fix For: 1.3
>
>
> 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.