зеркало из https://github.com/mozilla/gecko-dev.git
bug 279939: Remove a bogus assertion and fix up the plaintext serializer's handling of <li>s with no preceeding <ul> or <ol>. r=akkana sr=jst
This commit is contained in:
Родитель
5516fb204e
Коммит
c49cf66e74
|
@ -776,8 +776,8 @@ nsPlainTextSerializer::DoOpenContainer(const nsIParserNode* aNode, PRInt32 aTag)
|
|||
}
|
||||
else {
|
||||
static char bulletCharArray[] = "*o+#";
|
||||
NS_ASSERTION(mULCount > 0, "mULCount should be greater than 0 here");
|
||||
char bulletChar = bulletCharArray[(mULCount - 1) % 4];
|
||||
PRUint32 index = mULCount > 0 ? (mULCount - 1) : 3;
|
||||
char bulletChar = bulletCharArray[index % 4];
|
||||
mInIndentString.Append(PRUnichar(bulletChar));
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче