Before this patch, if you wrote newlines or more than a single whitespace character while sharing any document, in the note, those'd get collapsed in the final email. @Tecnativa TT31901 closes odoo/odoo#76624 X-original-commit: 6914371e95afff565fa6880f3ff9cf410b357750 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Co-authored-by: Jairo Llopis <jairo.llopis@tecnativa.com>