""" Leading summary whitespace (as in this issue title)."""
See original GitHub issueFor better readability, some people prefer inserting a space between the triple quotes """ and the summary text:
def is_ascii(text):
""" Checks if contains only ASCII characters."""
return all(ord(letter) < 128 for letter in text)
The leading whitespace:
🡇
""" Checks if contains only ASCII characters."""
Without that whitespace:
"""Checks if contains only ASCII characters."""
We may add an option --leading-summary-space or --pre-summary-space or --space-before-summary or --space-after-triple-quotes… What option name do you prefer?
Attention, this option has no effect on multi-lines docstring when --pre-summary-newline is used.
Thanks
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
how to add leading blank spaces to Title statement
I want to add few Leading blank spaces to the Title in my excel report generated by PROC REPORT using tagsets.ExcelXP. TITLE J=LEFT...
Read more >what is trailing whitespace and how can I handle this?
Trailing whitespace is any spaces or tabs after the last non-whitespace character on the line until the newline. In your posted question, there...
Read more >Page Title outputting leading/trailing whitespace within H1
My Drupal 7 site is printing out leading and trailing whitespace and a line break within the page title <h1> . The following...
Read more >Crafting an Appropriate Running Title for Your Scientific Paper
Requirements for running titles vary between journals, but generally, they must be 50-60 characters long at most, often including spaces.
Read more >How whitespace is handled by HTML, CSS, and in the DOM
Whitespace is any string of text composed only of spaces, tabs or line breaks (to be precise, CRLF sequences, carriage returns or line...
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 Free
Top 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

--pre-summary-spacematches the--pre-summary-newlineoption for naming, so would probably be the least confusing.Closed by #46