With macos, there’s a great trick:
Copy the “paragraph” or chunk of text
With your terminal, run this command:
pbpaste | fmt -w 80 | pbcopy
Definitely try a
man fmtfor more details.
foldis another line wrapping tool, but does a little less. That could be useful in other situations too.
Now on your clipboard, you should have a formatted chunk of text that’s perfectly line broken and word wrapped.
There’s probably a linux variant too, if you need it depending on your distribution and other tooling.
Follow me on Mastodon @email@example.com.
Follow me on Twitter @ryanmr.