From 1897ccdef2f80822edfc9db2e7b6bc187cce2037 Mon Sep 17 00:00:00 2001 From: Zach Rispoli Date: Thu, 3 Aug 2017 17:27:01 -0400 Subject: [PATCH] Change setting so that decomment library preserves spaces (#411) * Change setting so that decomment preserves spaces * Fix trailing spaces --- client/modules/IDE/components/PreviewFrame.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/modules/IDE/components/PreviewFrame.jsx b/client/modules/IDE/components/PreviewFrame.jsx index 314090c7..27725fb6 100644 --- a/client/modules/IDE/components/PreviewFrame.jsx +++ b/client/modules/IDE/components/PreviewFrame.jsx @@ -280,7 +280,10 @@ class PreviewFrame extends React.Component { } } }); - newContent = decomment(newContent, { ignore: /noprotect/g }); + newContent = decomment(newContent, { + ignore: /noprotect/g, + space: true + }); newContent = loopProtect(newContent); return newContent; }