Fix ports bustage, linux runtime problems.

git-svn-id: svn://10.0.0.236/trunk@105461 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jaggernaut%netscape.com
2001-10-16 04:07:30 +00:00
parent 7bb7b59a69
commit 9c98fae369

View File

@@ -2298,12 +2298,17 @@ nsHTMLDocument::WriteCommon(const nsAReadableString& aText,
mWriteLevel++;
static const NS_NAMED_LITERAL_STRING(sNewLine, "\n");
rv = mParser->Parse(aNewlineTerminate ? (aText + sNewLine) : aText,
NS_GENERATE_PARSER_KEY(),
NS_LITERAL_STRING("text/html"), PR_FALSE,
(!mIsWriting || (mWriteLevel > 1)));
if (aNewlineTerminate) {
rv = mParser->Parse(aText + NS_LITERAL_STRING("\n"),
NS_GENERATE_PARSER_KEY(),
NS_LITERAL_STRING("text/html"), PR_FALSE,
(!mIsWriting || (mWriteLevel > 1)));
} else {
rv = mParser->Parse(aText,
NS_GENERATE_PARSER_KEY(),
NS_LITERAL_STRING("text/html"), PR_FALSE,
(!mIsWriting || (mWriteLevel > 1)));
}
mWriteLevel--;
return rv;