contentWhittle doesn't cope with messages that include unicode non-breaking spaces - bug 495185 r=asuth sr=bienvenu

This commit is contained in:
David Ascher 2009-06-26 01:43:02 -07:00
Родитель c71ac10263
Коммит 1a9d8fdeb4
2 изменённых файлов: 9 добавлений и 1 удалений

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

@ -645,7 +645,7 @@ var GlodaFundAttr = {
let rangeStart = 0, lastNonBlankLine = null, prevLastNonBlankLine = null; let rangeStart = 0, lastNonBlankLine = null, prevLastNonBlankLine = null;
let inQuoteDepth = 0; let inQuoteDepth = 0;
for each (let [iLine, line] in Iterator(bodyLines)) { for each (let [iLine, line] in Iterator(bodyLines)) {
if (!line) if (!line || (line == "\xa0")) /* unicode non breaking space */
continue; continue;
if (line[0] == ">") { if (line[0] == ">") {

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

@ -73,6 +73,14 @@ var messageInfos = [
[false, ""], [false, ""],
[true, "Verily!"]] [true, "Verily!"]]
}, },
{
name: "german style",
bode: [[false, "Mark Banner <bugzilla@standard8.plus.com> wrote:"],
[false, "\xa0"],
[false, "> We haven't nailed anything down in detail yet, depending on how we are "],
[true, "That sounds great and would definitely be appreciated by localizers."],
[false, ""]]
},
{ {
name: "tortuous interference", name: "tortuous interference",
bode: [[false, "> wrote"], bode: [[false, "> wrote"],