Bug 9749: insert a newline after a PRE tag even if mode isn't formatted
git-svn-id: svn://10.0.0.236/trunk@40322 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -914,7 +914,7 @@ void nsHTMLContentSinkStream::AddStartTag(const nsIParserNode& aNode)
|
||||
mColPos += 1;
|
||||
}
|
||||
|
||||
if (mDoFormat && BreakAfterOpen(tag))
|
||||
if ((mDoFormat && BreakAfterOpen(tag)) || (tag == eHTMLTag_pre))
|
||||
{
|
||||
Write(NS_LINEBREAK);
|
||||
mColPos = 0;
|
||||
@@ -925,8 +925,6 @@ void nsHTMLContentSinkStream::AddStartTag(const nsIParserNode& aNode)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void nsHTMLContentSinkStream::AddEndTag(const nsIParserNode& aNode)
|
||||
{
|
||||
eHTMLTags tag = (eHTMLTags)aNode.GetNodeType();
|
||||
|
||||
Reference in New Issue
Block a user