-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manage indentation better in docstrings
get_docstring used to discard all indentation. It now uses `inspect.cleandoc()` to remove spurious indents but preserve intentional ones, which results in more nicely formatted markdown docstrings. I have not changed the default remove_newlines=True but I am quite tempted to do so. I'm not convinced by the current trailing space if remove_newlines is True, but have not changed this behaviour because there's no advantage to doing so...
- Loading branch information
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters