Fix function docstring

This commit is contained in:
Joachim 2023-07-31 22:15:09 +02:00
parent e37ed8ea5e
commit 928d56b566

View file

@ -345,7 +345,7 @@ def _wrapped(text):
def _ends_with_punctuation(text):
"""check if a line of text is wrapped"""
"""check if a line of text ends with a punctuation glyph"""
glyphs = [".", ",", ";", ":", "!", "?", "", "", '"', "»"]
for glyph in glyphs:
if text[-1] == glyph: