Skip to content

Commit

Permalink
Merge pull request #11992 from Snuffleupagus/preprocessor-rm-HTML-com…
Browse files Browse the repository at this point in the history
…ment-trailing-whitespace

Prevent the (old) preprocessor from appending trailing whitespace when removing closing HTML comments
  • Loading branch information
timvandermeij authored Jun 11, 2020
2 parents c9934de + 85a6745 commit 63a7aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion external/builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, ""));
}
}
}
Expand Down

0 comments on commit 63a7aaa

Please sign in to comment.