added 'marker-style' entities and fixed a few bugs

This commit is contained in:
rickg
1998-04-16 08:18:15 +00:00
parent 64bc537e75
commit cabfc4a619
2 changed files with 6 additions and 4 deletions

View File

@@ -662,11 +662,12 @@ PRBool HTMLContentSink::AddLeaf(const nsIParserNode& aNode)
case eToken_entity:
{
nsAutoString tmp;
PRInt32 unicode = aNode.TranslateToUnicode();
nsAutoString tmp2("");
PRInt32 unicode = aNode.TranslateToUnicodeStr(tmp2);
if (unicode < 0) {
tmp.Append(aNode.GetText());
} else {
tmp.Append(PRUnichar(unicode));
tmp+=tmp2;
}
rv = NS_NewHTMLText(&leaf, tmp.GetUnicode(), tmp.Length());
}