question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`rich_cli` does not properly clean indentations for `click >= 8.1.0`

See original GitHub issue

rich_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:closed
  • Created a year ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
abduscocommented, Apr 25, 2022

@apcamargo 's fix works wonderfully 🚀

1reaction
ewelscommented, Apr 14, 2022

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 used textwrap.dedent in the past which is why that jumped to mind. But better to use the same approach as Click 👍🏻

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found