removed warnings and partially fixed M3

This commit is contained in:
rickg@netscape.com
1999-03-16 07:06:48 +00:00
parent 52a7b72e94
commit e69f092f53
6 changed files with 34 additions and 18 deletions
@@ -667,6 +667,13 @@ NS_IMETHODIMP CViewSourceHTML::HandleToken(CToken* aToken,nsIParser* aParser) {
{
SetColor("maroon",PR_TRUE,*mSink);
nsAutoString theStr("&");
nsString& theEntity=aToken->GetStringValueXXX();
if(!theEntity.EqualsIgnoreCase("XI",2)) {
PRUnichar theChar=theEntity.CharAt(0);
if((nsString::IsDigit(theChar)) || ('X'==theChar) || ('x'==theChar)){
theStr.Append("#");
}
}
theStr.Append(aToken->GetStringValueXXX());
theStr.Append(";");
WriteText(theStr,*mSink,PR_FALSE);