Merge pull request 'template parsing: allow whitespace in tags' (#316) from jmplace/ScoDoc-Lille:correction_mise_en_page_latex into master

Reviewed-on: https://scodoc.org/git/ScoDoc/ScoDoc/pulls/316
This commit is contained in:
Emmanuel Viennet 2022-02-14 10:29:05 +01:00
commit 4ec17acb0d

View File

@ -87,7 +87,7 @@ def get_tags_latex(code_latex):
""" """
if code_latex: if code_latex:
# changé par EV: était r"([\*]{2}[a-zA-Z0-9:éèàâêëïôöù]+[\*]{2})" # 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] return [tag[2:-2] for tag in res]
else: else:
return [] return []