Remove the header processing function and add comments to the tokenizer

This commit is contained in:
Veronica Berglyd Olsen
2024-03-02 18:21:55 +01:00
parent 24ea5f2f2b
commit 37f56a34f4
6 changed files with 80 additions and 131 deletions
-1
View File
@@ -31,7 +31,6 @@ from novelwriter.constants import nwRegEx, nwUnicode
RX_SC = re.compile(nwRegEx.FMT_SC)
RX_LO = re.compile(r"(?i)(?<!\\)(\[(?:vspace|newpage|new page)(:\d+)?)(?<!\\)(\])")
RX_IN = re.compile(r"^>{1,2}\s*|\s*<{1,2}$")
def preProcessText(text: str, keepHeaders: bool = True) -> list[str]: