Remove CSS white-space from messages to prevent annoying side scrolling

This commit is contained in:
the-djmaze 2023-02-17 13:35:59 +01:00
parent ab77949e64
commit 75a6353445

View file

@ -100,6 +100,7 @@ const
cleanCSS = source =>
source.trim().replace(/-(ms|webkit)-[^;]+(;|$)/g, '')
.replace(/white-space[^;]+(;|$)/g, '')
// Drop Microsoft Office style properties
// .replace(/mso-[^:;]+:[^;]+/gi, '')
,