From 9c7c7a956c88966b39a395a77f9b2f2d3949ee7b Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 1 Mar 2017 14:22:56 +0900 Subject: [PATCH] Add nice comment --- src/web/app/common/scripts/text-compiler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/web/app/common/scripts/text-compiler.js b/src/web/app/common/scripts/text-compiler.js index aacd28fb6..4a2ca400a 100644 --- a/src/web/app/common/scripts/text-compiler.js +++ b/src/web/app/common/scripts/text-compiler.js @@ -37,6 +37,7 @@ module.exports = (tokens, shouldBreak) => { } }).join(''); + // Remove needless whitespaces text = text .replace(/ /g, '').replace(/<\/code> /g, '') .replace(/
/g, '
').replace(/<\/code><\/pre>
/g, '
');