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 | ||||
|       @author         Me | ||||
|       ==/UserStyle== */ | ||||
|        | ||||
|       ${section} | ||||
|     `.replace(/^\s+/gm, '');
 | ||||
|     `.replace(/^\s+/gm, '') + '\n\n' + section;
 | ||||
|     dirty.clear('sourceGeneration'); | ||||
|     style.sourceCode = ''; | ||||
|     chromeSync.getLZValue('usercssTemplate').then(code => { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user