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, '
');