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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user