diff --git a/product/ERP5Type/patches/transforms/html_to_text.py b/product/ERP5Type/patches/transforms/html_to_text.py index 6e406243e557f172271d3e262064dbf86b326dff..3d43604b3029f42b3cf2d6a2cd5440147c082265 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\/]*>', '\n'), + ('<br[\s\/]*>(?im)', '\n'), ('(?im)<(h[1-6r]|address|p|ul|ol|dl|pre|div|center|blockquote|form|isindex|table)(?=\W)[^>]*>', ' '), ('<[^>]*>(?i)(?m)', ''),