67426 - Fixing up a regression caused when fixing bug 54453.

r=heikki
This commit is contained in:
harishd%netscape.com 2001-02-02 22:07:38 +00:00
parent e515c1db7c
commit 2863e449d8
2 changed files with 4 additions and 4 deletions

View File

@ -1774,8 +1774,8 @@ SinkContext::AddLeaf(const nsIParserNode& aNode)
}
else {
// Map carriage returns to newlines
if ((tmp.Length() > 0) && (tmp.CharAt(0) == '\r')) {
if (tmp.CharAt(0) == '\r') {
if(tmp.Length() > 0) {
if(tmp.CharAt(0) == '\r') {
tmp.AssignWithConversion("\n");
}
rv = AddText(tmp);

View File

@ -1774,8 +1774,8 @@ SinkContext::AddLeaf(const nsIParserNode& aNode)
}
else {
// Map carriage returns to newlines
if ((tmp.Length() > 0) && (tmp.CharAt(0) == '\r')) {
if (tmp.CharAt(0) == '\r') {
if(tmp.Length() > 0) {
if(tmp.CharAt(0) == '\r') {
tmp.AssignWithConversion("\n");
}
rv = AddText(tmp);