From dc75aefc86dbfa0cbb3a044f272e064d14970cfa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9mence=20Laurent?= <clemence@opensquare.eu>
Date: Thu, 23 Mar 2023 14:56:26 +0100
Subject: [PATCH] debug alRawTextCleaning python

---
 alRawTextCleaning.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/alRawTextCleaning.py b/alRawTextCleaning.py
index 9cd133f..a31d875 100644
--- a/alRawTextCleaning.py
+++ b/alRawTextCleaning.py
@@ -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
-- 
GitLab