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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user