preserve section indentation in usercss template
This commit is contained in:
parent
4674424764
commit
bf17c7de94
|
@ -101,9 +101,7 @@ function createSourceEditor(style) {
|
||||||
@description A new userstyle
|
@description A new userstyle
|
||||||
@author Me
|
@author Me
|
||||||
==/UserStyle== */
|
==/UserStyle== */
|
||||||
|
`.replace(/^\s+/gm, '') + '\n\n' + section;
|
||||||
${section}
|
|
||||||
`.replace(/^\s+/gm, '');
|
|
||||||
dirty.clear('sourceGeneration');
|
dirty.clear('sourceGeneration');
|
||||||
style.sourceCode = '';
|
style.sourceCode = '';
|
||||||
chromeSync.getLZValue('usercssTemplate').then(code => {
|
chromeSync.getLZValue('usercssTemplate').then(code => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user