mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 00:47:04 +03:00
Remove CSS white-space from messages to prevent annoying side scrolling
This commit is contained in:
parent
ab77949e64
commit
75a6353445
1 changed files with 1 additions and 0 deletions
|
|
@ -100,6 +100,7 @@ const
|
||||||
|
|
||||||
cleanCSS = source =>
|
cleanCSS = source =>
|
||||||
source.trim().replace(/-(ms|webkit)-[^;]+(;|$)/g, '')
|
source.trim().replace(/-(ms|webkit)-[^;]+(;|$)/g, '')
|
||||||
|
.replace(/white-space[^;]+(;|$)/g, '')
|
||||||
// Drop Microsoft Office style properties
|
// Drop Microsoft Office style properties
|
||||||
// .replace(/mso-[^:;]+:[^;]+/gi, '')
|
// .replace(/mso-[^:;]+:[^;]+/gi, '')
|
||||||
,
|
,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue