Fix 10621: write NS_LINEBREAK when we see the html whitespace tag

git-svn-id: svn://10.0.0.236/trunk@41618 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akkana%netscape.com
1999-07-30 23:40:57 +00:00
parent 661de5e6f6
commit 2b020f827c
2 changed files with 12 additions and 6 deletions

View File

@@ -657,6 +657,10 @@ nsHTMLContentSinkStream::SetTitle(const nsString& aValue){
}
// XXX OpenHTML never gets called; AddStartTag gets called on
// XXX the html tag from OpenContainer, from nsXIFDTD::StartTopOfStack,
// XXX from nsXIFDTD::HandleStartToken.
/**
* This method is used to open the outer HTML container.
*
@@ -898,7 +902,7 @@ void nsHTMLContentSinkStream::AddStartTag(const nsIParserNode& aNode)
if (mDoFormat && tag == eHTMLTag_style)
{
Write(">");
Write(kGreaterThan);
Write(NS_LINEBREAK);
const nsString& data = aNode.GetSkippedContent();
PRInt32 size = data.Length();
@@ -1110,8 +1114,7 @@ nsHTMLContentSinkStream::AddLeaf(const nsIParserNode& aNode){
{
if (!mDoFormat || preformatted)
{
const nsString& text = aNode.GetText();
Write(text);
Write(NS_LINEBREAK);
mColPos = 0;
}
}