adafruit/Adafruit_CircuitPython_Display_Text

wrap_text_to_pixels() cannot handle Windows line endings

unlimitedbacon opened this issue · 1 comments

The wrap_text_to_pixels() fails with an AttributeError when given text with Windows style (CRLF) line endings, because the \r character has no .shift_x attribute. Here is an example string:

26th commercial resupply services mission to the International Space Station operated by SpaceX. The flight will be conducted under the second Commercial Resupply Services contract with NASA.\r\n\r\nCargo Dragon 2 brings supplies and payloads, including critical materials to directly support science and research investigations that occur onboard the orbiting laboratory.

Are you doing this using Blinka? Could you provide sample code that replicates the error for testing/fixing?