mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
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
1 changed files with 1 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue