allow newline in text runs for better text performance on linux/mac
git-svn-id: svn://10.0.0.236/trunk@48354 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user