Commit 3883fed5 authored by Nicolas Delaby's avatar Nicolas Delaby

Support Escaped entities in regex

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20304 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fba268dc
...@@ -447,6 +447,7 @@ xmlns:config="http://openoffice.org/2001/config" office:version="1.0"> ...@@ -447,6 +447,7 @@ xmlns:config="http://openoffice.org/2001/config" office:version="1.0">
# It's an equivalent to DOTALL option passing (but sub can't get options parameter) # It's an equivalent to DOTALL option passing (but sub can't get options parameter)
text = re.sub('<\s*office:include_img\s+(.*?)\s*/\s*>(?s)', replaceIncludesImg, text) text = re.sub('<\s*office:include_img\s+(.*?)\s*/\s*>(?s)', replaceIncludesImg, text)
text = re.sub('<\s*office:include\s+(.*?)\s*/\s*>(?s)', replaceIncludes, text) text = re.sub('<\s*office:include\s+(.*?)\s*/\s*>(?s)', replaceIncludes, text)
text = re.sub('&lt;\s*office:include\s+(.*?)\s*/\s*&gt;(?s)', replaceIncludes, text)
return (text, attached_files_dict) return (text, attached_files_dict)
# Proxy method to PageTemplate # Proxy method to PageTemplate
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment