Count newlines in textareas correctly. bug 331482, r+sr=sicking

This commit is contained in:
mrbkap%gmail.com 2006-04-06 22:30:18 +00:00
parent ffcef9d003
commit 060fd68dd6

View File

@ -770,7 +770,7 @@ CTextToken::ConsumeParsedCharacterData(PRBool aDiscardFirstNewline,
// the document.
static const PRUnichar terminalChars[] = {
PRUnichar('&'), PRUnichar('<'),
PRUnichar('\r'), PRUnichar('\n'), PRUnichar('&'), PRUnichar('<'),
PRUnichar(0)
};
static const nsReadEndCondition theEndCondition(terminalChars);