mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 524763 - Regexp/string confusion in generateTextForTextNode in about:support. r=johnath,dao
This commit is contained in:
parent
c076f94025
commit
b5bbb26187
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user