fix bugs 8523, 9127, parially fix 8803

This commit is contained in:
rickg@netscape.com
1999-07-07 07:40:35 +00:00
parent 2970e0f2cf
commit a71f2cb74d
36 changed files with 166 additions and 84 deletions

View File

@@ -820,13 +820,15 @@ nsresult ConsumeComment(PRUnichar aChar, nsScanner& aScanner,nsString& aString)
aString+=aChar;
}
theRightChars.Truncate(0);
aString.Right(theRightChars,5);
theRightChars.StripChars(" ");
if(NS_OK==result){
theRightChars.Truncate(0);
aString.Right(theRightChars,5);
theRightChars.StripChars(" ");
findpos=theRightChars.RFind("-->");
if(kNotFound==findpos)
findpos=theRightChars.RFind("!>");
findpos=theRightChars.RFind("-->");
if(kNotFound==findpos)
findpos=theRightChars.RFind("!>");
}
} //while
return result;
} //if