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