b=255990 backing-out the previous patch, we should try to better fix.
git-svn-id: svn://10.0.0.236/trunk@203238 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -344,11 +344,8 @@ nsTextTransformer::ScanNormalAsciiText_F(PRInt32* aWordLen,
|
||||
bp2 += mBufferPos;
|
||||
}
|
||||
|
||||
PRUnichar prevCh;
|
||||
PRUnichar ch = 0;
|
||||
for (; offset < fragLen; offset++) {
|
||||
prevCh = (ch == ' ') ? CH_NBSP : ch;
|
||||
ch = *cp++;
|
||||
unsigned char ch = *cp++;
|
||||
if (XP_IS_SPACE(ch)) {
|
||||
break;
|
||||
}
|
||||
@@ -356,10 +353,6 @@ nsTextTransformer::ScanNormalAsciiText_F(PRInt32* aWordLen,
|
||||
ch = ' ';
|
||||
*aWasTransformed = PR_TRUE;
|
||||
}
|
||||
else if (offset != mOffset &&
|
||||
nsContentUtils::LineBreaker()->CanBreakBetweenLatin1(prevCh, ch)) {
|
||||
break;
|
||||
}
|
||||
else if (IS_DISCARDED(ch)) {
|
||||
// Strip discarded characters from the transformed output
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user