Changed to use "pre", fixing a remaining part of the last change, bug 37299.

git-svn-id: svn://10.0.0.236/trunk@67753 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nhotta%netscape.com
2000-05-01 21:59:49 +00:00
parent 7f880a49e6
commit 68caf033cf

View File

@@ -1862,8 +1862,12 @@ static int DoLanguageSensitiveFont(MimeObject *obj, const char *prefixName, cons
done:
// if nothing has been written then write out just "<div>" to match with "</div>"
if (status == -1)
status = MimeObject_write(obj, "<div>\n", 6, PR_FALSE);
if (status == -1) {
if (!nsCRT::strcasecmp(obj->content_type, TEXT_HTML))
status = MimeObject_write(obj, "<div>", 5, PR_FALSE);
else
status = MimeObject_write(obj, "<pre>", 5, PR_FALSE);
}
return status;
}