[ale] Utility to word-wrap plain text?
Cox, Danny
dcox at icc.net
Wed Mar 28 09:37:43 EDT 2007
Chuck,
I have users of a web site submitting text in a <textarea> tag. The
form is
later delivered to via email.
The problem I'm encountering is that while the user types in the
textarea, words
are automatically wrapped within the space provided. However, when I
receive
the contents of the tag, no word wrapping occurs unless the user
specifically
included a newline.
Does anyone have any ideas on how I can take the contents of a bash
shell
variable and word-wrap it to, oh say, 72 columns?
Try 'fmt'.
Danny Cox
More information about the Ale
mailing list