Skip to content

Commit

Permalink
[FIX] #2443 looks like \n does weird stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
iRyusa committed Aug 2, 2022
1 parent 0e4e2a2 commit 8bb45df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions packages/mjml-core/src/helpers/preview.js
Expand Up @@ -4,8 +4,6 @@ export default function (content) {
}

return `
<div style="display:none;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;">
${content}
</div>
<div style="display:none;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;">${content}</div>
`
}
6 changes: 2 additions & 4 deletions packages/mjml-core/src/helpers/skeleton.js
Expand Up @@ -29,9 +29,7 @@ export default function skeleton(options) {
return `${beforeDoctype ? `${beforeDoctype}\n` : ''}<!doctype html>
<html ${langAttribute}${dirAttribute}xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<title>
${title}
</title>
<title>${title}</title>
<!--[if !mso]><!-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--<![endif]-->
Expand Down Expand Up @@ -74,7 +72,7 @@ export default function skeleton(options) {
)}
</style>
<style type="text/css">
${map(style, s => (isFunction(s) ? s(breakpoint) : s)).join('')}
${map(style, (s) => (isFunction(s) ? s(breakpoint) : s)).join('')}
</style>
${headRaw.filter(negate(isNil)).join('\n')}
</head>
Expand Down

0 comments on commit 8bb45df

Please sign in to comment.