From 00fbe97972aae9946615c627cefb17c0d2fde364 Mon Sep 17 00:00:00 2001 From: "akkana%netscape.com" Date: Wed, 26 Apr 2000 02:21:41 +0000 Subject: [PATCH] The mInWhitespace fix broke the automated tests -- need to find another solution git-svn-id: svn://10.0.0.236/trunk@67171 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/htmlparser/src/nsHTMLToTXTSinkStream.cpp | 6 ++++-- mozilla/parser/htmlparser/src/nsHTMLToTXTSinkStream.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mozilla/htmlparser/src/nsHTMLToTXTSinkStream.cpp b/mozilla/htmlparser/src/nsHTMLToTXTSinkStream.cpp index 252fe41b9ce..a1880b01937 100644 --- a/mozilla/htmlparser/src/nsHTMLToTXTSinkStream.cpp +++ b/mozilla/htmlparser/src/nsHTMLToTXTSinkStream.cpp @@ -245,8 +245,10 @@ nsHTMLToTXTSinkStream::Initialize(nsIOutputStream* aOutStream, // If we're encoding only the selection, then we don't want to risk // ignoring whitespace which might be significant: - if (mFlags | nsIDocumentEncoder::OutputSelectionOnly) - mInWhitespace = PR_FALSE; +// Unfortunately, this isn't the right solution because then we +// always get a space at the beginning of selection-only output! +// if (mFlags | nsIDocumentEncoder::OutputSelectionOnly) +// mInWhitespace = PR_FALSE; return result; } diff --git a/mozilla/parser/htmlparser/src/nsHTMLToTXTSinkStream.cpp b/mozilla/parser/htmlparser/src/nsHTMLToTXTSinkStream.cpp index 252fe41b9ce..a1880b01937 100644 --- a/mozilla/parser/htmlparser/src/nsHTMLToTXTSinkStream.cpp +++ b/mozilla/parser/htmlparser/src/nsHTMLToTXTSinkStream.cpp @@ -245,8 +245,10 @@ nsHTMLToTXTSinkStream::Initialize(nsIOutputStream* aOutStream, // If we're encoding only the selection, then we don't want to risk // ignoring whitespace which might be significant: - if (mFlags | nsIDocumentEncoder::OutputSelectionOnly) - mInWhitespace = PR_FALSE; +// Unfortunately, this isn't the right solution because then we +// always get a space at the beginning of selection-only output! +// if (mFlags | nsIDocumentEncoder::OutputSelectionOnly) +// mInWhitespace = PR_FALSE; return result; }