Fix codemirror theme comment spacing
This commit is contained in:
parent
4e1850513b
commit
e0416905fc
|
@ -482,7 +482,7 @@ onDOMscriptReady('/codemirror.js').then(() => {
|
||||||
if (!chrome.runtime.getPackageDirectoryEntry) {
|
if (!chrome.runtime.getPackageDirectoryEntry) {
|
||||||
const themes = [
|
const themes = [
|
||||||
chrome.i18n.getMessage('defaultTheme'),
|
chrome.i18n.getMessage('defaultTheme'),
|
||||||
/* populate-theme-start*/
|
/* populate-theme-start */
|
||||||
'3024-day',
|
'3024-day',
|
||||||
'3024-night',
|
'3024-night',
|
||||||
'abcdef',
|
'abcdef',
|
||||||
|
|
|
@ -19,7 +19,7 @@ function replaceThemes(content, themes) {
|
||||||
return content.replace(
|
return content.replace(
|
||||||
/\/\*\s*populate-theme-start\s*\*\/[\s\S]+\/\*\s*populate-theme-end\s*\*\//,
|
/\/\*\s*populate-theme-start\s*\*\/[\s\S]+\/\*\s*populate-theme-end\s*\*\//,
|
||||||
// strip off square brackets & first 8 spaces
|
// 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 */`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user