зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 163753 (Code for xsl:comment has a bug). r=sicking, sr=jst.
This commit is contained in:
Родитель
c64eee0593
Коммит
a0e8b4bb24
|
@ -1304,8 +1304,10 @@ void XSLTProcessor::processAction(Node* aNode,
|
|||
PRUint32 length = value.length();
|
||||
while ((pos = value.indexOf('-', pos)) != kNotFound) {
|
||||
++pos;
|
||||
if (((PRUint32)pos == length) || (value.charAt(pos) == '-'))
|
||||
if (((PRUint32)pos == length) || (value.charAt(pos) == '-')) {
|
||||
value.insert(pos++, ' ');
|
||||
++length;
|
||||
}
|
||||
}
|
||||
NS_ASSERTION(mResultHandler, "mResultHandler must not be NULL!");
|
||||
mResultHandler->comment(value);
|
||||
|
|
Загрузка…
Ссылка в новой задаче