Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
word wrap text output
#1
my script has huge strings of text to output in a (probably virtual) text-mode environment. i would like to have something that can break up the text in word wrap or other appropriate mode. there a many more things to do than just split by spacing and form what fits. certain hyphenated words can be split at the hyphen, too. maybe there is a module around that does this right. in this case, something new to install on Xubuntu 18.04 is OK since it's just for me. but, a way to do this in the Python Library would still be a plus.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
word wrap text output - by Skaperen - Dec-17-2019, 06:41 AM
RE: word wrap text output - by stranac - Dec-17-2019, 06:54 AM
RE: word wrap text output - by michael1789 - Dec-17-2019, 07:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  easy way to paginate --help text output? Skaperen 1 2,065 Feb-08-2020, 11:34 AM
Last Post: Gribouillis
  libmdbx, prod-ready fork of LMDB: someone can wrap it for python? genryrar 5 5,369 Jun-28-2018, 08:22 PM
Last Post: erthink

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020