views:

158

answers:

2

Can I expect line breaks in text boxes to be one of the common line break conventions or does it depend on the user's OS?

i.e.: CR or CR+LF or LF

+3  A: 

The HTML 4.01 specification states that line breaks are represented as CR LF pairs.

Steve Madsen
A: 

it depends on the language. usually in .NET you would use

Environment.NewLine

in JavaScript it would be "/n"

in VbScript you could use "vbNewLine"

Stan R.
minor typo: in JS, newline is `\n` not `/n`
DDaviesBrackett
sorry about that. thank you.
Stan R.
I'm aware, thanks, but the language I process it with has no effect on what data the web form sends. I'm also fairly certain that almost all language constants [in this context] are only provided to make source code portable.
Shadow