Fix codemirror theme comment spacing

This commit is contained in:
Rob Garrison 2018-07-21 09:39:01 -05:00
parent 4e1850513b
commit e0416905fc
2 changed files with 2 additions and 2 deletions

View File

@ -482,7 +482,7 @@ onDOMscriptReady('/codemirror.js').then(() => {
if (!chrome.runtime.getPackageDirectoryEntry) {
const themes = [
chrome.i18n.getMessage('defaultTheme'),
/* populate-theme-start*/
/* populate-theme-start */
'3024-day',
'3024-night',
'abcdef',

View File

@ -19,7 +19,7 @@ function replaceThemes(content, themes) {
return content.replace(
/\/\*\s*populate-theme-start\s*\*\/[\s\S]+\/\*\s*populate-theme-end\s*\*\//,
// strip off square brackets & first 8 spaces
`/* populate-theme-start*/\n${list.substring(2, list.length - 2)}\n /* populate-theme-end */`
`/* populate-theme-start */\n${list.substring(2, list.length - 2)}\n /* populate-theme-end */`
);
}