From bf17c7de94b54e2a582308d5709dafbd0e8da37b Mon Sep 17 00:00:00 2001 From: tophf Date: Thu, 4 Jan 2018 16:45:07 +0300 Subject: [PATCH] preserve section indentation in usercss template --- edit/source-editor.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/edit/source-editor.js b/edit/source-editor.js index 8b37352e..36043916 100644 --- a/edit/source-editor.js +++ b/edit/source-editor.js @@ -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 => {