Fixed bug 3651: for OutputText, we were not outputting

linebreaks whenever we encounter <BR> in the content
model.


git-svn-id: svn://10.0.0.236/trunk@23901 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kostello%netscape.com
1999-03-12 06:51:34 +00:00
parent 32ae1e3029
commit b53c0edb3c
2 changed files with 18 additions and 0 deletions

View File

@@ -412,6 +412,15 @@ nsHTMLToTXTSinkStream::AddLeaf(const nsIParserNode& aNode, ostream& aStream)
mColPos += text.Length();
}
}
else if (type == eHTMLTag_br)
{
if (PR_TRUE)
{
aStream << endl;
mColPos += 1;
}
}
return NS_OK;
}