Skip to content

Commit 392a481

Browse files
committed
document leading and trailing whitespace removal
1 parent 8dcaefb commit 392a481

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adafruit_display_text/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99

1010
def wrap_text_to_pixels(string, max_width, font=None, indent0="", indent1=""):
1111
"""wrap_text_to_pixels function
12-
A helper that will return a list of lines with word-break wrapping
12+
A helper that will return a list of lines with word-break wrapping.
13+
Leading and trailing whitespace in your string will be removed. If
14+
you wish to use leading whitespace see `indend0` and `indent1`
15+
parameters.
1316
1417
:param str string: The text to be wrapped.
1518
:param int max_width: The maximum number of pixels on a line before wrapping.

0 commit comments

Comments
 (0)