From 85a67456ed9c53b6d08a97d86f0702ccd7c26fd1 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 11 Jun 2020 12:15:18 +0200 Subject: [PATCH] Prevent the (old) preprocessor from appending trailing whitespace when removing closing HTML comments This can currently be seen in the *built* `web/viewer.html` file, at the line containing " ". --- external/builder/builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/builder/builder.js b/external/builder/builder.js index 9ae6775949cdf..edfb23cffa57b 100644 --- a/external/builder/builder.js +++ b/external/builder/builder.js @@ -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, "")); } } }