зеркало из https://github.com/mozilla/gecko-dev.git
r=troy, ftang fix for 9099 HTML entity followed by CR garbles page and
30353 Thai Page shows a weird character for <wbr>
This commit is contained in:
Родитель
62ac30090d
Коммит
05698e7667
|
@ -300,7 +300,7 @@ nsTextTransformer::ScanNormalUnicodeText_F(PRBool aForLineBreak,
|
|||
if (CH_NBSP == ch) {
|
||||
ch = ' ';
|
||||
}
|
||||
else if (IS_DISCARDED(ch)) {
|
||||
else if (IS_DISCARDED(ch) || (ch == 0x0a) || (ch == 0x0d)) {
|
||||
// Strip discarded characters from the transformed output
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -300,7 +300,7 @@ nsTextTransformer::ScanNormalUnicodeText_F(PRBool aForLineBreak,
|
|||
if (CH_NBSP == ch) {
|
||||
ch = ' ';
|
||||
}
|
||||
else if (IS_DISCARDED(ch)) {
|
||||
else if (IS_DISCARDED(ch) || (ch == 0x0a) || (ch == 0x0d)) {
|
||||
// Strip discarded characters from the transformed output
|
||||
continue;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче