You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\foo{some ramdom stuff i don't want language check on} % correctly ignored by --remove-macros foo\foo{some way way way longer random stuff that happen to
become multiline but i still don't wan language check on it} % not ignored by --remove-macros foo
textidote version: 0.8.3
I tried some workarounds by defining replace files with stuff looking like this:
#replacements.txt
\\foo\{[\s\S]*?\} -> # \s\S should include every line breaks, but this don't work
\\foo\{(.|\R)*?\} -> # \R should match with every unicode newline but this didn't work either
I also tried various regexes that should include every line return but nothing worked. Note that everything i tried still worked on single-line macros, only multiline macros were not matched. Maybe somewere in the code the strings are matched line by line ? I looked at the source code quickly but nothing suggesting this stood out to me, but i'm not a java expert.
I wonder if this is a limitation of ca.uqac.lif.petitpoucet.function.strings.Replace. I tried to read the source code but again nothing in particular stood out.
I'll comment on the issue if i have time to investigate more and find some nice clues.
The text was updated successfully, but these errors were encountered:
Britaliope
changed the title
--remove-macros not working on macros with multiline parameter.--remove-macros not working on macros with multiline parameter.
Dec 12, 2023
Hello and thank you for this great tool !
I found an issue on the macro ignore rules:
textidote version: 0.8.3
I tried some workarounds by defining replace files with stuff looking like this:
I also tried various regexes that should include every line return but nothing worked. Note that everything i tried still worked on single-line macros, only multiline macros were not matched. Maybe somewere in the code the strings are matched line by line ? I looked at the source code quickly but nothing suggesting this stood out to me, but i'm not a java expert.
I wonder if this is a limitation of
ca.uqac.lif.petitpoucet.function.strings.Replace
. I tried to read the source code but again nothing in particular stood out.I'll comment on the issue if i have time to investigate more and find some nice clues.
The text was updated successfully, but these errors were encountered: