Skip to content

Commit

Permalink
Note that line boundaries also result in breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jparise committed Feb 4, 2024
1 parent 30f4ebc commit 37b54b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vesta/chars.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ def encode_text(
cannot be found, the line will be broken at the column limit (potentially
mid-"word").
Line boundaries (as determined by :py:meth:`str.splitlines`) appearing in
the source string always result in line breaks.
:raises ValueError: if the string contains unsupported characters or codes
>>> encode_text('multiple\\nlines\\nof\\ntext', align="center", valign="middle")
Expand Down

0 comments on commit 37b54b4

Please sign in to comment.