From e1522fc02faeac9e5244e8c3c202acfa040ba302 Mon Sep 17 00:00:00 2001 From: "akkana%netscape.com" Date: Tue, 24 Oct 2000 00:31:08 +0000 Subject: [PATCH] 56833: fix whitespace problem in html output --- content/base/src/nsHTMLContentSerializer.cpp | 1 + layout/base/src/nsHTMLContentSerializer.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/content/base/src/nsHTMLContentSerializer.cpp b/content/base/src/nsHTMLContentSerializer.cpp index 4af0ca4308e..523bd2e8bac 100644 --- a/content/base/src/nsHTMLContentSerializer.cpp +++ b/content/base/src/nsHTMLContentSerializer.cpp @@ -442,6 +442,7 @@ nsHTMLContentSerializer::AppendToStringWrapped(const nsAReadableString& aStr, // old line break and find the end of the next old line. if (indx == oldLineEnd) { oldLineEnd = aStr.FindChar(PRUnichar('\n'), indx+1); + AppendToString(NS_LITERAL_STRING(" "), aOutputStr); } if (addLineBreak) { diff --git a/layout/base/src/nsHTMLContentSerializer.cpp b/layout/base/src/nsHTMLContentSerializer.cpp index 4af0ca4308e..523bd2e8bac 100644 --- a/layout/base/src/nsHTMLContentSerializer.cpp +++ b/layout/base/src/nsHTMLContentSerializer.cpp @@ -442,6 +442,7 @@ nsHTMLContentSerializer::AppendToStringWrapped(const nsAReadableString& aStr, // old line break and find the end of the next old line. if (indx == oldLineEnd) { oldLineEnd = aStr.FindChar(PRUnichar('\n'), indx+1); + AppendToString(NS_LITERAL_STRING(" "), aOutputStr); } if (addLineBreak) {