Allow spaces between \page and {}

Consistent behavior with other curly injections
This commit is contained in:
Trevor Buckner committed 2025-01-29 11:48:18 -05:00
1 parent be18843b09
commit 6dfd44e2f1
2 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ const MetadataEditor = require('./metadataEditor/metadataEditor.jsx');
const EDITOR_THEME_KEY = 'HOMEBREWERY-EDITOR-THEME';
const PAGEBREAK_REGEX_V3 = /^(?=\\page(?:{[^\n{}]*})?$)/m;
const PAGEBREAK_REGEX_V3 = /^(?=\\page(?: *{[^\n{}]*})?$)/m;
const SNIPPETBAR_HEIGHT = 25;
const DEFAULT_STYLE_TEXT = dedent`
/*=======--- Example CSS styling ---=======*/