Bug 1392064 - Insert <pre> tags in quotes with class=moz-quote-pre to not inhibit auto-downgrade. r=aceman
authorJorg K <jorgk@jorgk.com>
Tue, 22 Aug 2017 00:31:47 +0200
changeset 28766 dcfbdc934514df29c6de1ee5dd7b766af19fb2ab
parent 28765 81273b0a4b6150577545276d8e831d027c5c25ab
child 28767 62701153a5506529538c0e99fbd4d3b6a3ce47ba
push idunknown
push userunknown
push dateunknown
reviewersaceman
bugs1392064
Bug 1392064 - Insert <pre> tags in quotes with class=moz-quote-pre to not inhibit auto-downgrade. r=aceman
mailnews/mime/src/mimetpla.cpp
--- a/mailnews/mime/src/mimetpla.cpp
+++ b/mailnews/mime/src/mimetpla.cpp
@@ -188,20 +188,20 @@ MimeInlineTextPlain_parse_begin (MimeObj
             }
             if (!fontLang.IsEmpty())
             {
               openingDiv += " lang=\"";
               openingDiv += fontLang;
               openingDiv += '\"';
             }
           }
-          openingDiv += "><pre wrap>\n";
+          openingDiv += "><pre wrap class=\"moz-quote-pre\">\n";
         }
         else
-          openingDiv = "<pre wrap>\n";
+          openingDiv = "<pre wrap class=\"moz-quote-pre\">\n";
 
       /* text/plain objects always have separators before and after them.
        Note that this is not the case for text/enriched objects. */
       status = MimeObject_write_separator(obj);
       if (status < 0) return status;
 
       status = MimeObject_write(obj, openingDiv.get(), openingDiv.Length(), true);
       if (status < 0) return status;
@@ -364,24 +364,24 @@ MimeInlineTextPlain_parse_line (const ch
         {
           prefaceResultStr += "<blockquote type=cite style=\"";
           prefaceResultStr += style;
           prefaceResultStr += "\">";
         }
         else
           prefaceResultStr += "<blockquote type=cite>";
       }
-      prefaceResultStr += "<pre wrap>\n";
+      prefaceResultStr += "<pre wrap class=\"moz-quote-pre\">\n";
     }
     else if (text->mCiteLevel < oldCiteLevel)
     {
       prefaceResultStr += "</pre>";
       for (uint32_t i = 0; i < oldCiteLevel - text->mCiteLevel; i++)
         prefaceResultStr += "</blockquote>";
-      prefaceResultStr += "<pre wrap>\n";
+      prefaceResultStr += "<pre wrap class=\"moz-quote-pre\">\n";
     }
 
     // Write plain text quoting tags
     if (logicalLineStart != 0 && !(plainHTML && text->mBlockquoting))
     {
       if (!plainHTML)
         prefaceResultStr += "<span class=\"moz-txt-citetags\">";