[FIX] tools: fix underline and italic in logged notes
Steps to reproduce: - in any app log a note using full composer - add styles to the text (underline, strike-through, italic) Bug: styles except bold are removed Fix: added missing styles to the whitlelist opw-2956374 closes odoo/odoo#102056 X-original-commit: eb07ab104d5f47574e14db811108a7d0cbbbe4b2 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
+2
-2
@@ -51,8 +51,8 @@ class _Cleaner(clean.Cleaner):
|
||||
_style_re = re.compile(r'''([\w-]+)\s*:\s*((?:[^;"']|"[^";]*"|'[^';]*')+)''')
|
||||
|
||||
_style_whitelist = [
|
||||
'font-size', 'font-family', 'font-weight', 'background-color', 'color', 'text-align',
|
||||
'line-height', 'letter-spacing', 'text-transform', 'text-decoration', 'opacity',
|
||||
'font-size', 'font-family', 'font-weight', 'font-style', 'background-color', 'color', 'text-align',
|
||||
'line-height', 'letter-spacing', 'text-transform', 'text-decoration', 'text-decoration', 'opacity',
|
||||
'float', 'vertical-align', 'display',
|
||||
'padding', 'padding-top', 'padding-left', 'padding-bottom', 'padding-right',
|
||||
'margin', 'margin-top', 'margin-left', 'margin-bottom', 'margin-right',
|
||||
|
||||
Reference in New Issue
Block a user