[Zope] carriage returns and newlines entered into HTML form inputs
Terry Hancock
hancock@anansispaceworks.com
Wed, 14 May 2003 08:01:05 -0700
On Wednesday 14 May 2003 07:04 am, AdvertisingDept wrote:
> HTML Form contains a textarea inputs.
> User wants to enter distinct 'lines'
> into a textarea input box
This is where the munging happens -- the HTML textarea
tag supports three different input specifications regarding
the presentation of carriage returns. The default
varies by browser. Get an HTML reference and check
the tag for the attribute "wrap". You probably want
wrap="physical"
whereas you are probably either using
wrap="virtual"
or else it is your browser's default (best not to leave
that to chance anyway).
So the database probably never saw the original
formatting.
At least this seems most likely to me.
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com