allow newline in text runs for better text performance on linux/mac

This commit is contained in:
rickg@netscape.com
1999-09-20 19:27:41 +00:00
parent 5cda23f7e1
commit e303cf8092
2 changed files with 2 additions and 2 deletions

View File

@@ -447,7 +447,7 @@ nsresult CTextToken::Consume(PRUnichar aChar, nsScanner& aScanner) {
result=aScanner.ReadUntil(mTextValue,theTerminals,PR_FALSE,PR_FALSE);
if(NS_OK==result) {
result=aScanner.Peek(aChar);
if((kCR==aChar) && (NS_OK==result)) {
if(((kCR==aChar) || (kNewLine==aChar)) && (NS_OK==result)) {
result=aScanner.GetChar(aChar); //strip off the \r
result=aScanner.Peek(aChar); //then see what's next.
if(NS_OK==result) {