From 67f66852c567bfdb2fcee68f3fe99331e06925ef Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Fri, 22 Feb 2008 18:13:34 +0000
Subject: [PATCH] fix regexp.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19475 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/patches/transforms/html_to_text.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Type/patches/transforms/html_to_text.py b/product/ERP5Type/patches/transforms/html_to_text.py
index 3d43604b30..5df39e9085 100644
--- a/product/ERP5Type/patches/transforms/html_to_text.py
+++ b/product/ERP5Type/patches/transforms/html_to_text.py
@@ -46,7 +46,7 @@ def register():
                        ('<head [^>]>.*</head>(?im)', ''),
                        
                        # added for ERP5, we want to transform <br/> in newlines
-                       ('<br[\s\/]*>(?im)', '\n'),
+                       ('<br\s*/?>(?im)', '\n'),
 
                        ('(?im)<(h[1-6r]|address|p|ul|ol|dl|pre|div|center|blockquote|form|isindex|table)(?=\W)[^>]*>', ' '),
                        ('<[^>]*>(?i)(?m)', ''),
-- 
2.30.9