Bug 849422 Allow plain text document word-wrap to be turned on after the fact r=bz

This commit is contained in:
Neil Rashbrook
2013-03-13 19:56:24 +00:00
parent fc007717d1
commit 76a37bffb8
2 changed files with 7 additions and 7 deletions

View File

@@ -12,7 +12,6 @@
#include "nsNodeUtils.h"
#include "nsIFrame.h"
#include "mozilla/Likely.h"
#include "mozilla/Preferences.h"
class nsPresContext;
@@ -729,11 +728,9 @@ nsHtml5TreeBuilder::StartPlainTextViewSource(const nsAutoString& aTitle)
void
nsHtml5TreeBuilder::StartPlainText()
{
if (mozilla::Preferences::GetBool("plain_text.wrap_long_lines", true)) {
startTag(nsHtml5ElementName::ELT_LINK,
nsHtml5PlainTextUtils::NewLinkAttributes(),
false);
}
startTag(nsHtml5ElementName::ELT_LINK,
nsHtml5PlainTextUtils::NewLinkAttributes(),
false);
StartPlainTextBody();
}