Bug 524763 - Regexp/string confusion in generateTextForTextNode in about:support. r=johnath,dao

This commit is contained in:
Dão Gottwald 2009-11-05 09:03:28 +01:00
parent c076f94025
commit b5bbb26187

View File

@ -376,7 +376,7 @@ function generateTextForTextNode(node, indent, textFragmentAccumulator) {
// Trim the text node's text content and add proper indentation after
// any internal line breaks.
let text = node.textContent.trim().replace("\n[ \t]*", "\n" + indent);
let text = node.textContent.trim().replace("\n", "\n" + indent, "g");
textFragmentAccumulator.push(text);
}