Bug 187252 Provide ?? mechanism to insert literal ? in templates r=varga sr=ben

This commit is contained in:
neil%parkwaycc.co.uk 2004-05-21 19:41:33 +00:00
Родитель 01eb104cf2
Коммит 3f23b6f2e9
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -941,6 +941,13 @@ nsXULTemplateBuilder::ParseAttribute(const nsAString& aAttributeValue,
(*aTextCallback)(this, Substring(mark, backup), aClosure);
}
if (*iter == PRUnichar('?')) {
// Well, it was not really a variable, but "??". We use one
// question mark (the second one, actually) literally.
mark = iter;
continue;
}
// Construct a substring that is the symbol we need to look up
// in the rule's symbol table. The symbol is terminated by a
// space character, a caret, or the end of the string,