Mentions légales du service

Skip to content
Snippets Groups Projects
Commit dc75aefc authored by Clémence Laurent's avatar Clémence Laurent
Browse files

debug alRawTextCleaning python

parent 7cfcd2f9
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ def altok_escape_xml(s, do_not_create_XML_special_tokens = 0):
s = re.sub(r"(?=\\)(\{[^\{}]*)&lt;", r"\1<", s)
s = re.sub(r"(?=\\)(\{[^\{}]*)&gt;", r"\1>", s)
if do_not_create_XML_special_tokens == 0:
if not do_not_create_XML_special_tokens:
if re.search(r"_XML", s):
s = re.sub(r"\{([^{}]+)\} _XML", lambda x : "{" + _double_whitespaces(x.group(1)) + "} _XML", s)
return s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment