mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Resolve #1666
This commit is contained in:
parent
ad81e3f9e9
commit
e4316e6665
2 changed files with 2 additions and 2 deletions
|
|
@ -623,6 +623,8 @@ export const
|
||||||
html = html
|
html = html
|
||||||
.replace(/<pre[^>]*>([\s\S]*?)<\/pre>/gim, (...args) =>
|
.replace(/<pre[^>]*>([\s\S]*?)<\/pre>/gim, (...args) =>
|
||||||
1 < args.length ? args[1].toString().replace(/\n/g, '<br>') : '')
|
1 < args.length ? args[1].toString().replace(/\n/g, '<br>') : '')
|
||||||
|
// Remove line duplication
|
||||||
|
.replace(/<br><\/div>/gi, '</div>')
|
||||||
.replace(/\r?\n/g, '')
|
.replace(/\r?\n/g, '')
|
||||||
.replace(/\s+/gm, ' ');
|
.replace(/\s+/gm, ' ');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1506,8 +1506,6 @@ export class ComposePopupView extends AbstractViewPopup {
|
||||||
do {
|
do {
|
||||||
l = Text.length;
|
l = Text.length;
|
||||||
Text = Text
|
Text = Text
|
||||||
// Remove line duplication
|
|
||||||
.replace(/<br><\/div>/gi, '</div>')
|
|
||||||
// Remove Microsoft Office styling
|
// Remove Microsoft Office styling
|
||||||
.replace(/(<[^>]+[;"'])\s*mso-[a-z-]+\s*:[^;"']+/gi, '$1')
|
.replace(/(<[^>]+[;"'])\s*mso-[a-z-]+\s*:[^;"']+/gi, '$1')
|
||||||
// Remove hubspot data-hs- attributes
|
// Remove hubspot data-hs- attributes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue