12018: add a linebreak for br tags even in unformatted mode

This commit is contained in:
akkana%netscape.com 1999-09-01 23:37:36 +00:00
Родитель 4b0c676303
Коммит 71bd6be10a
2 изменённых файлов: 8 добавлений и 12 удалений

Просмотреть файл

@ -812,12 +812,10 @@ nsHTMLToTXTSinkStream::AddLeaf(const nsIParserNode& aNode)
}
else if (type == eHTMLTag_br)
{
if (mFlags & nsIDocumentEncoder::OutputFormatted)
{
nsString temp (NS_LINEBREAK);
Write(temp);
mColPos = 0;
}
// Do this even if we're not doing formatted output:
nsString temp (NS_LINEBREAK);
Write(temp);
mColPos = 0;
}
// The only time we want to pass along whitespace from the original
// html source is if we're prettyprinting and we're inside a <pre>.

Просмотреть файл

@ -812,12 +812,10 @@ nsHTMLToTXTSinkStream::AddLeaf(const nsIParserNode& aNode)
}
else if (type == eHTMLTag_br)
{
if (mFlags & nsIDocumentEncoder::OutputFormatted)
{
nsString temp (NS_LINEBREAK);
Write(temp);
mColPos = 0;
}
// Do this even if we're not doing formatted output:
nsString temp (NS_LINEBREAK);
Write(temp);
mColPos = 0;
}
// The only time we want to pass along whitespace from the original
// html source is if we're prettyprinting and we're inside a <pre>.