adafruit / Python-Thermal-Printer

217 stars 147 forks source link

Wrap tweets neatly at 32 characters #5

Open ghalfacree opened 11 years ago

ghalfacree commented 11 years ago

Using the existing code, tweets are hard-wrapped at 32 characters - which causes words to get cut off half-way through. This modification imports the textwrap module, and uses its wrap function to neatly wrap tweet text at 32 characters - making everything a lot more readable.