Bug 1575549: revert !MayWrap() check which was unintentionally added in Bug 1574912. r=hsivonen

Differential Revision: https://phabricator.services.mozilla.com/D42844

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mirko Brodesser 2019-08-21 13:57:24 +00:00
parent cf20303f06
commit 69a2fc5f69

View File

@ -1470,7 +1470,7 @@ void nsPlainTextSerializer::Write(const nsAString& aStr) {
// that does normal formatted text. The one for preformatted text calls
// Output directly while the other code path goes through AddToLine.
if ((mPreFormattedMail && !mWrapColumn) ||
(IsElementPreformatted() && !mPreFormattedMail && !MayWrap()) ||
(IsElementPreformatted() && !mPreFormattedMail) ||
(mSpanLevel > 0 && mEmptyLines >= 0 && IsQuotedLine(str))) {
// No intelligent wrapping.