Uploaded image for project: 'Commons CLI'
  1. Commons CLI
  2. CLI-207

HelpFormatter strips leading whitespaces in the footer

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3
    • Component/s: Help formatter
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              balor123 Uri Moszkowicz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: