[Erp5-report] r20304 - /erp5/trunk/products/ERP5OOo/OOoTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Apr 4 11:24:55 CEST 2008


Author: nicolas
Date: Fri Apr  4 11:24:51 2008
New Revision: 20304

URL: http://svn.erp5.org?rev=20304&view=rev
Log:
Support Escaped entities in regex

Modified:
    erp5/trunk/products/ERP5OOo/OOoTemplate.py

Modified: erp5/trunk/products/ERP5OOo/OOoTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/OOoTemplate.py?rev=20304&r1=20303&r2=20304&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/OOoTemplate.py (original)
+++ erp5/trunk/products/ERP5OOo/OOoTemplate.py Fri Apr  4 11:24:51 2008
@@ -447,6 +447,7 @@
     # 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('&lt;\s*office:include\s+(.*?)\s*/\s*&gt;(?s)', replaceIncludes, text)
     return (text, attached_files_dict)
 
   # Proxy method to PageTemplate




More information about the Erp5-report mailing list