Skip to content

wrap_text_to_pixels() cannot handle Windows line endings #177

Closed
@unlimitedbacon

Description

@unlimitedbacon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions