summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js
diff options
context:
space:
mode:
authorXavier Dubuc <xdu@odoo.com>2020-06-25 12:58:05 +0000
committerAlexandre Kühn <aku@odoo.com>2020-06-26 09:10:55 +0000
commit343c1c05d3e9cf39a41dc259e8f1630fe3ecd9f2 (patch)
treeb860f70746756623f7894c55bf224d29b4db2012 /addons/mail/static/src/js
parent03a0b2d22c6676a1ad77e3fd9272e3c6bcff62c9 (diff)
[FIX] mail: replace <br/> by space in thread preview
task-2284905 closes odoo/odoo#53718 X-original-commit: 80504fabd43832c5495ded3afc4b364c71d3df70 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/js')
-rw-r--r--addons/mail/static/src/js/utils.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/static/src/js/utils.js b/addons/mail/static/src/js/utils.js
index d54f5932619..bbb9a535716 100644
--- a/addons/mail/static/src/js/utils.js
+++ b/addons/mail/static/src/js/utils.js
@@ -95,6 +95,7 @@ function htmlToTextContentInline(htmlString) {
const fragment = document.createDocumentFragment();
const div = document.createElement('div');
fragment.appendChild(div);
+ htmlString = htmlString.replace(/<br\s*\/?>/gi,' ');
try {
div.innerHTML = htmlString;
} catch (e) {