template parsing: allow whitespace in tags

This commit is contained in:
Jean-Marie PLACE 2022-02-14 09:57:15 +01:00
parent 514a09e0d9
commit 25cc9a5229
1 changed files with 1 additions and 1 deletions

View File

@ -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 []