-
Notifications
You must be signed in to change notification settings - Fork 37
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
Newline Characters Not Rendered in CLI Command Epilog #206
Comments
Hi @cpalau. Just posting to acknowledge I see your issue! I'm on the busy side for the next couple days and I'll be able to look more into this either on Friday or more likely Sunday. |
Hello @cpalau, sorry to get back so late. The newline behavior is deliberate; see #49 for more discussion. I believe the intent was to mimic general markdown behavior. The way to work around it is to add double newlines, so
This should definitely be documented, since it isn't right now. Newline control is a wishlist item in #179, which I am behind on to be honest. (My new job has ramped up in terms of workload, I've fallen behind on a lot of open source.) Hopefully this solves your issue! |
Closing as duplicate of #49 Note that if you use the @form4.command(
epilog="""
Examples:
python etl.py form4 process,
python etl.py form4 process --sec-rss-feed,
python etl.py form4 process --sec-accession-number 0001425287-24-000117,
python etl.py form4 process --sec-accession-number 0001425287-24-000117 --download-only
"""
) |
Version: rich-click 1.8.3
I have a problem with newline characters (
\n
) in the epilog text. CLI text is not being properly rendered when output to the terminal. This results in the epilog text appearing as a single continuous line, despite attempts to format it with line breaks.I tried
"""
, adding\n
and I have the image results. Tried in Windows, Linux and OSX with same results.Tried different ways like:
Any help ? Thanks!
The text was updated successfully, but these errors were encountered: