From b08b4776fa54fc27449ac4a2da8002474036cf75 Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Fri, 21 May 2004 19:41:33 +0000 Subject: [PATCH] Bug 187252 Provide ?? mechanism to insert literal ? in templates r=varga sr=ben git-svn-id: svn://10.0.0.236/trunk@156720 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp b/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp index 06913a5b9dc..b751c295f20 100644 --- a/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp +++ b/mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp @@ -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,