`rich_cli` does not properly clean indentations for `click >= 8.1.0`
See original GitHub issuerich_click
is not cleaning indentations if click
version is ≥ 8.10. The cause is probably this change in the backend.
This code:
def cli():
"""
Foo: bar
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Pellentesque habitant
morbi tristique senectus. Leo a diam sollicitudin tempor.
"""
Is generating this:
Foo: bar
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua. Pellentesque habitant morbi tristique senectus. Leo a diam
sollicitudin tempor.
Instead of this:
Foo: bar
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore
et dolore magna aliqua. Pellentesque habitant morbi tristique senectus. Leo a diam sollicitudin
tempor.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Blog - Apache Cordova
This issue was caused by one of the package dependencies, insight . The previous workaround was to reinstall Cordova CLI, but now this...
Read more >All of the Documentation | Electron - GitHub Pages
quit() , Electron will first try to close all the windows and then emit the will-quit event, and in this case the window-all-closed...
Read more >The Complete Guide - CFEngine 3.20 Documentation
More than this, however, CFEngine is not like other automation tools that ... CFEngine processes are now properly identified in syslog on non-GNU/Linux ......
Read more >conda-forge - :: Anaconda.org
anaconda-clean, 1.1.1, BSD-3-Clause, X, This module removes configuration files ... This library is a spinoff from folium with the non-map-specific features.
Read more >ChangeLog-SLE-15-SP3-GM-SLE-15-SP4-PublicBeta ... - SUSE
Issue 4912 - Account Policy plugin does not set the config entry DN * Issue 4863 - typoes in logconv.pl * Issue 4796...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@apcamargo 's fix works wonderfully 🚀
No, that sounds perfect 👍🏻 I wasn’t familiar with
inspect.cleandoc
, I didn’t realise that this was part of the core lib. I’ve usedtextwrap.dedent
in the past which is why that jumped to mind. But better to use the same approach as Click 👍🏻