mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
Fix 10621: write NS_LINEBREAK when we see the html whitespace tag
This commit is contained in:
parent
c0d62790f4
commit
9843a58b25
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user