Merge pull request #11992 from Snuffleupagus/preprocessor-rm-HTML-comment-trailing-whitespace
Prevent the (old) preprocessor from appending trailing whitespace when removing closing HTML comments
This commit is contained in:
commit
63a7aaa6f6
2
external/builder/builder.js
vendored
2
external/builder/builder.js
vendored
@ -181,7 +181,7 @@ function preprocess(inFilename, outFilename, defines) {
|
||||
!stack.includes(STATE_IF_FALSE) &&
|
||||
!stack.includes(STATE_ELSE_FALSE)
|
||||
) {
|
||||
writeLine(line.replace(/^\/\/|^<!--|-->$/g, " "));
|
||||
writeLine(line.replace(/^\/\/|^<!--/g, " ").replace(/-->$/g, ""));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user