[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Utility to word-wrap plain text?
- Subject: [ale] Utility to word-wrap plain text?
- From: dcox at icc.net (Cox, Danny)
- Date: Wed, 28 Mar 2007 09:37:43 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
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