CodeFileTreeNode.py
changeset 2439 f0a040f1de1b
parent 2434 07f48018b6f5
child 2523 aa7f138648f3
--- a/CodeFileTreeNode.py	Tue Oct 09 11:43:39 2018 +0300
+++ b/CodeFileTreeNode.py	Tue Oct 09 11:56:45 2018 +0300
@@ -114,8 +114,8 @@
                 '<%s>' % self.CODEFILE_NAME,
                 '<%s xmlns:xhtml="http://www.w3.org/1999/xhtml">' % self.CODEFILE_NAME)
             for cre, repl in [
-                    (re.compile("(?<!<xhtml:p>)(?:<!\[CDATA\[)"), "<xhtml:p><![CDATA["),
-                    (re.compile("(?:]]>)(?!</xhtml:p>)"), "]]></xhtml:p>")]:
+                    (re.compile(r"(?<!<xhtml:p>)(?:<!\[CDATA\[)"), "<xhtml:p><![CDATA["),
+                    (re.compile(r"(?:]]>)(?!</xhtml:p>)"), "]]></xhtml:p>")]:
                 codefile_xml = cre.sub(repl, codefile_xml)
 
             try: