Fix for bug 163753 (Code for xsl:comment has a bug). r=sicking, sr=jst.

This commit is contained in:
peterv%netscape.com 2002-08-21 08:46:13 +00:00
Родитель c64eee0593
Коммит a0e8b4bb24
1 изменённых файлов: 3 добавлений и 1 удалений

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

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