52042: "Escape" classes inserted by our TXT recognizer(s) by prepending "moz-"

39771: * -> <b> (not <strong>), / -> <i> (not <em>)
18427, Step 1: Add |class=moz-text-html | to wrapping <div>, so users can add rules specific to HTML msgs to their user stylesheets (e.g. to ignore certain formatting). r=rhp
Updating msg body UA stylesheets
r=a=alecf


git-svn-id: svn://10.0.0.236/trunk@78949 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mozilla.BenB%bucksch.org
2000-09-13 02:11:00 +00:00
parent 7be15f994d
commit 3d0feef7ba
8 changed files with 94 additions and 161 deletions

View File

@@ -472,8 +472,8 @@ PRBool nsHTMLToTXTSinkStream::IsConverted(const nsIParserNode& aNode)
NS_SUCCEEDED(rv)
&&
(
value.EqualsWithConversion("txt", PR_TRUE, 3) ||
value.EqualsWithConversion("\"txt", PR_TRUE, 4)
value.EqualsWithConversion("moz-txt", PR_TRUE, 7) ||
value.EqualsWithConversion("\"moz-txt", PR_TRUE, 8)
)
);
}
@@ -908,8 +908,8 @@ nsHTMLToTXTSinkStream::AddLeaf(const nsIParserNode& aNode)
}
else if (type == eHTMLTag_text)
{
/* Check, if some other MUA (e.g. 4.x) recognized the URL in
plain text and inserted an <a> element. If yes, output only once. */
/* Check, if some other MUA (e.g. 4.x) recognized the URI in
plain text and inserted an <a> element. If yes, output URI only once. */
if (!mURL.IsEmpty() && mURL == text)
mURL.Truncate();
if (
@@ -1797,4 +1797,3 @@ PRInt32 unicharwidth(const PRUnichar* pwcs, PRInt32 n)
return width;
}