Err... I'm wondering about your assumptions now--when I view the source
of the response page, I get the newlines back just as I submitted them.
You are aware that HTML formats text with all whitespace treated equally, aren't you? That is, all runs of whitespace of any kind (\s+) are condensed to a single space (just as you describe, in fact). If you want to preserve the newlines, use
<PRE>preformatted text</PRE> (in CGI.pm, that's pre($text)).
If you are in fact aware of this, I apologize, but in that case I think you're looking at a browser issue--I'm getting back exactly the results I'd expect from your code, using IE5/Mac.
If God had meant us to fly, he would *never* have given us the railroads.
--Michael Flanders
| [reply] [d/l] [select] |
Try this, since you are using (based on jcwren's link,
an IE3 specific syntax with <input type="textarea">
<textarea wrap=physical></texarea>
--
perl -p -e "s/(?:\w);([st])/'\$1/mg"
| [reply] [d/l] [select] |
The HTML actually sends all the textboxes' newlines nicely, no matter what kind of wrap you are using.
The problem is CGI.pm turns the %0A%0D into a single space, no matter how many newlines it encounters in a row. That my problem!
SM|TZ
| [reply] |