Chaostreff-Potsdam / erika3004

19 stars 5 forks source link

bugfix: skip newline after automatically inserted newlines #33

Open sknebel opened 4 years ago

cyroxx commented 4 years ago

Using this ascii_art.txt and an ERIKA_MAX_LINE_LENGTH=65, I still get empty lines on the physical device.

ArchibaldBienetre commented 4 years ago

@cyroxx @sknebel isn't hacketyhack merged already?

Can we close this PR then? :)

ArchibaldBienetre commented 4 years ago

Maybe erika.util.remove_trailing_newlines is an option.

sirexeclp commented 4 years ago

maybe this can be used https://docs.python.org/3.1/library/textwrap.html