Update script

fix a bug where regex weirdness would kick text after a keyword onto a previous line
This commit is contained in:
cajun
2024-09-27 14:38:58 -05:00
parent f16c3015ac
commit 3edcd6dbf9

View File

@@ -1512,7 +1512,7 @@ text_filter :=
) +
#### step 2c : move action keywords' reminder text to the end of the line
replace@(
match: "(<atom-reminder-[^>]+> (?:(?!</kw).*?)</atom-reminder-[^>]+></kw[^>]*>)([^\n]+)", #### removed "| ?<kw-" from lookahead
match: "(<atom-reminder-[^>]+> (?:(?!</kw).*?)</atom-reminder-[^>]+></kw[^>]*>)([^\n]*)", #### removed "| ?<kw-" from lookahead
replace: "\\2\\1"
) +
#### step 2d : when there's an action keyword and another one, then move that to the end of the line