From 0a2706144bf2a9ddbc8891d869af8140dac3f822 Mon Sep 17 00:00:00 2001 From: Jean-Marie PLACE Date: Mon, 14 Feb 2022 09:57:15 +0100 Subject: [PATCH] template parsing: allow whitespace in tags --- app/pe/pe_avislatex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/pe/pe_avislatex.py b/app/pe/pe_avislatex.py index 2ff507152..fc64253ca 100644 --- a/app/pe/pe_avislatex.py +++ b/app/pe/pe_avislatex.py @@ -87,7 +87,7 @@ def get_tags_latex(code_latex): """ if code_latex: # changé par EV: était r"([\*]{2}[a-zA-Z0-9:éèàâêëïôöù]+[\*]{2})" - res = re.findall(r"([\*]{2}[^ \t\n\r\f\v\*]+[\*]{2})", code_latex) + res = re.findall(r"([\*]{2}[^\t\n\r\f\v\*]+[\*]{2})", code_latex) return [tag[2:-2] for tag in res] else: return []