diff --git a/htmlparser/src/nsHTMLToTXTSinkStream.cpp b/htmlparser/src/nsHTMLToTXTSinkStream.cpp
index 4334f9bcfe4..30582bf51a9 100644
--- a/htmlparser/src/nsHTMLToTXTSinkStream.cpp
+++ b/htmlparser/src/nsHTMLToTXTSinkStream.cpp
@@ -1001,7 +1001,7 @@ nsHTMLToTXTSinkStream::AddLeaf(const nsIParserNode& aNode)
temp.AppendWithConversion(" ["); // Should we output chars at all here?
desc.StripChars("\"");
temp += desc;
- temp.AppendWithConversion("]");
+ temp.AppendWithConversion("] ");
}
// If the alt attribute has an empty value (|alt=""|), output nothing
}
diff --git a/parser/htmlparser/src/nsHTMLToTXTSinkStream.cpp b/parser/htmlparser/src/nsHTMLToTXTSinkStream.cpp
index 4334f9bcfe4..30582bf51a9 100644
--- a/parser/htmlparser/src/nsHTMLToTXTSinkStream.cpp
+++ b/parser/htmlparser/src/nsHTMLToTXTSinkStream.cpp
@@ -1001,7 +1001,7 @@ nsHTMLToTXTSinkStream::AddLeaf(const nsIParserNode& aNode)
temp.AppendWithConversion(" ["); // Should we output chars at all here?
desc.StripChars("\"");
temp += desc;
- temp.AppendWithConversion("]");
+ temp.AppendWithConversion("] ");
}
// If the alt attribute has an empty value (|alt=""|), output nothing
}