Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: The Mysteries Of LineBreaks

by Tardis (Pilgrim)
on Mar 12, 2002 at 11:06 UTC ( [id://151083]=note: print w/replies, xml ) Need Help??


in reply to The Mysteries Of LineBreaks

Something worth mentioning on this issue is the sort of TEXTAREA used in your forms.

In many cases, where the TEXTAREA is used for some sort of textual description entry by the user, the HTML attribute 'WRAP' should be set to 'VIRTUAL'.

When this is done, entered lines will word wrap at the TEXTAREA boundary, without the user pressing return.

With this, provided your users are well trained, you can be sure that EOL markers represent the end of paragraphs, in other words each paragraph is a single line of text.

This is very useful for clean formatting later, if it inserted back into a HTML document, or used in some other package.

Note that this attribute is browser dependant, and is not in any of the HTML specifications. http://www.utexas.edu/learn/forms/boxes.html provides more information on this feature.

Replies are listed 'Best First'.
Re: The Mysteries Of LineBreaks
by Cody Pendant (Prior) on Mar 12, 2002 at 20:10 UTC
    Thank you all for your help.

    For the record, this behaviour happened when using Internet Explorer for Mac, but on Windows IE too.

    What I should really do is test out a few browsers and see what happens. Maybe if I get the time.

    The regex with the /r being optional will be very useful, plus the idea about locally setting $\ and $/, and I'd completely forgotten about the WRAP options with TEXTAREA boxes, I'll also investigate that.

    Thanks again.
    --

    ($_='jjjuuusssttt annootthhrer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://151083]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-26 05:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found