Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded newlines in header or description are rendered incorrectly #230

Closed
remkop opened this issue Nov 6, 2017 · 0 comments
Closed

Embedded newlines in header or description are rendered incorrectly #230

remkop opened this issue Nov 6, 2017 · 0 comments

Comments

@remkop
Copy link
Owner

remkop commented Nov 6, 2017

For example, a Groovy dollar-slash string with embedded newlines:

@Command(header = $/@|bold,green \
  ___                            ___ _           _
 / __|_ _ ___  _____ ___  _     / __| |_  ___ __| |__ ____  _ _ __
| (_ | '_/ _ \/ _ \ V / || |   | (__| ' \/ -_) _| / /(_-< || | '  \ 
 \___|_| \___/\___/\_/ \_, |    \___|_||_\___\__|_\_\/__/\_,_|_|_|_| 
                       |__/ 
|@/$, ...

is rendered as

   ___                            ___ _           _
  / __|_
_ ___  _____ ___  _     / __| |_  ___ __| |__ ____  _ _ __
 | (_ | '_/ _ \\/
_ \\ V / || |   | (__| ' \\/ -_) _| / /(_-< || | '  \\
  \\___|_|
\\___/\\___/\\_/ \\_, |    \\___|_||_\\___\\__|_\\_\\/__/\\_,_|_|_|_|

                        |__/

Also, a Groovy multi-line string with embedded newlines

@Option(names = ["-a", "--algorithm"], description =
"""MD2, MD5, SHA-1, SHA-256, SHA-384, SHA-512, or
  any other MessageDigest algorithm. See [1] for more details.""")
@Field private String algorithm = "MD5"

is rendered as

  -a, --algorithm=<algorithm> MD2, MD5, SHA-1, SHA-256, SHA-384, SHA-512, or

                                any other MessageDigest algorithm. See [1] for
                                more details.
                                Default: MD5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant