Backed out changeset 3b9cc80b3ef0

This commit is contained in:
Dão Gottwald 2009-11-05 09:24:16 +01:00
parent e5adb247fb
commit d6334cb50a

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", "\n" + indent, "g");
let text = node.textContent.trim().replace("\n[ \t]*", "\n" + indent);
textFragmentAccumulator.push(text);
}