in reply to fixing what textareas do to input

In addition to using the s/\r\n/\n/g style expression to even out the linefeeds, you may want to set the textarea to WRAP="NONE" to force the user to do their own linefeeds. If you let the browser do the wrapping you may get inconsistent results.

Replies are listed 'Best First'.
RE:(2) fixing what textareas do to input
by swiftone (Curate) on Jun 05, 2000 at 19:02 UTC
    Except of course that that leads to annoyed users :)
      heh that's how the textareas work on Perl Monks (at least in my browser)... I don't find it annoying in the least. I rather like being able to choose where my lines break. I find it annoying when the browser wants to choose for me.
        True, but in some situations it isn't good. For example, I use Textreas to allow editing of text snippets on our page. Since the user will be cut-and-pasting text, I don't want to rely on the linebreaks in it.