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:
jbetak%netscape.com 2000-03-24 20:23:23 +00:00
Родитель 62ac30090d
Коммит 05698e7667
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;
}