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; }