preserve section indentation in usercss template

This commit is contained in:
tophf 2018-01-04 16:45:07 +03:00
parent 4674424764
commit bf17c7de94

View File

@ -101,9 +101,7 @@ function createSourceEditor(style) {
@description A new userstyle
@author Me
==/UserStyle== */
${section}
`.replace(/^\s+/gm, '');
`.replace(/^\s+/gm, '') + '\n\n' + section;
dirty.clear('sourceGeneration');
style.sourceCode = '';
chromeSync.getLZValue('usercssTemplate').then(code => {