Bug #30840 --> i broke scantxt for (c), (r) and +/- cases before beta1

r=alecf


git-svn-id: svn://10.0.0.236/trunk@62970 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mscott%netscape.com 2000-03-15 01:43:55 +00:00
parent f85013994d
commit 1d88b6ecd1

View File

@ -706,7 +706,7 @@ mozTXTToHTMLConv::GlyphHit(const PRUnichar * aInString, PRInt32 aInLength, PRBoo
if (ItMatchesDelimited(aInString, aInLength, "(c)", 3, LT_IGNORE, LT_DELIMITER))
// Note: ItMatchesDelimited compares case-insensitive
{
outputHTML = "©";
aOutputString.Append("©");
glyphTextLen = 3;
MOZ_TIMER_STOP(mGlyphHitTimer);
return PR_TRUE;
@ -714,7 +714,7 @@ mozTXTToHTMLConv::GlyphHit(const PRUnichar * aInString, PRInt32 aInLength, PRBoo
if (ItMatchesDelimited(aInString,aInLength, "(r)", 3, LT_IGNORE, LT_DELIMITER))
// see above
{
outputHTML = "®";
aOutputString.Append("®");
glyphTextLen = 3;
MOZ_TIMER_STOP(mGlyphHitTimer);
return PR_TRUE;
@ -724,14 +724,14 @@ mozTXTToHTMLConv::GlyphHit(const PRUnichar * aInString, PRInt32 aInLength, PRBoo
{
if (ItMatchesDelimited(aInString, aInLength, " +/-", 4, LT_IGNORE, LT_IGNORE))
{
outputHTML = " ±";
aOutputString.Append(" ±");
glyphTextLen = 4;
MOZ_TIMER_STOP(mGlyphHitTimer);
return PR_TRUE;
}
if (col0 && ItMatchesDelimited(aInString, aInLength, "+/-", 3, LT_IGNORE, LT_IGNORE))
{
outputHTML = "±";
aOutputString.Append("±");
glyphTextLen = 3;
MOZ_TIMER_STOP(mGlyphHitTimer);
return PR_TRUE;