From 3883fed58ed3eb9ecd1fcf37dc501d7b040388d7 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Fri, 4 Apr 2008 09:24:51 +0000 Subject: [PATCH] Support Escaped entities in regex git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20304 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5OOo/OOoTemplate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/product/ERP5OOo/OOoTemplate.py b/product/ERP5OOo/OOoTemplate.py index b465ba1556..63ff321d08 100644 --- a/product/ERP5OOo/OOoTemplate.py +++ b/product/ERP5OOo/OOoTemplate.py @@ -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) 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) return (text, attached_files_dict) # Proxy method to PageTemplate -- 2.30.9