Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table with parameters align="left" or align="right" converted to align="center" #535

Open
Reflet54 opened this issue Mar 8, 2018 · 1 comment

Comments

@Reflet54
Copy link

Reflet54 commented Mar 8, 2018

My table like that :
<table width="45%" cellspacing="0" cellpadding="0" border="0" align="left">

are converted to :

<table width="45%" cellspacing="0" cellpadding="0" border="0" align="center">

I use this to set the css and html :

        $emogrifier = new \Pelago\Emogrifier();
        $emogrifier->setHtml($html);
        $emogrifier->setCss($css);
        $emogrifier->enableCssToHtmlMapping();
        $emogrifier->disableStyleBlocksParsing();
        $emogrifier->disableInvisibleNodeRemoval();
        $mergedHtml = $emogrifier->emogrify();

version": "V1.2.0

@zoliszabo
Copy link
Contributor

Hi @Reflet54,

Can you also provide the $css you are using, please?

Also, is it possible for you to use the latest version of Emogrifier (https://github.com/MyIntervals/emogrifier/releases/tag/v2.0.0)? Some attributes related bugs were corrected since version 1.2.0.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants