equal
deleted
inserted
replaced
61 |
61 |
62 pythonfile_xml = pythonfile_xml.replace( |
62 pythonfile_xml = pythonfile_xml.replace( |
63 'xmlns="http://www.w3.org/2001/XMLSchema"', |
63 'xmlns="http://www.w3.org/2001/XMLSchema"', |
64 'xmlns:xhtml="http://www.w3.org/1999/xhtml"') |
64 'xmlns:xhtml="http://www.w3.org/1999/xhtml"') |
65 for cre, repl in [ |
65 for cre, repl in [ |
66 (re.compile("(?<!<xhtml:p>)(?:<!\[CDATA\[)"), "<xhtml:p><![CDATA["), |
66 (re.compile(r"(?<!<xhtml:p>)(?:<!\[CDATA\[)"), "<xhtml:p><![CDATA["), |
67 (re.compile("(?:]]>)(?!</xhtml:p>)"), "]]></xhtml:p>")]: |
67 (re.compile(r"(?:]]>)(?!</xhtml:p>)"), "]]></xhtml:p>")]: |
68 pythonfile_xml = cre.sub(repl, pythonfile_xml) |
68 pythonfile_xml = cre.sub(repl, pythonfile_xml) |
69 |
69 |
70 try: |
70 try: |
71 python_code, error = PythonParser.LoadXMLString(pythonfile_xml) |
71 python_code, error = PythonParser.LoadXMLString(pythonfile_xml) |
72 if error is None: |
72 if error is None: |