Change setting so that decomment library preserves spaces (#411)

* Change setting so that decomment preserves spaces

* Fix trailing spaces
This commit is contained in:
Zach Rispoli 2017-08-03 17:27:01 -04:00 committed by Cassie Tarakajian
parent fcb89e2c2b
commit 1897ccdef2

View file

@ -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;
}