Closed Hamdan85 closed 5 years ago
Hey @Hamdan85, thanks for the PR, but we need to understand exactly what it's fixing first. Also, adding a dependency on Roadie isn't ideal. It'd be better to understand how Roadie uses Nokogiri and follow that.
@ankane I do think you are probably right, but the problem is that for now, something is braking the css. I would advise to merge ir until a better solution comes up, but Im just proposing here lol...
But also, maybe we should call for @sparklemotion to try something out, because I actually still dont know if this a Nokogiri issue or AhoyEmail's.
@Hamdan85 It's not a Nokogiri issue since Roadie uses Nokogiri and doesn't have the same issue. And as I mentioned before, it doesn't make sense to merge something that neither you or I understand. You're welcome to use your fork, but if you want to contribute to the community, you'll need to spend the time to understand what's going on. I don't want to continue to go back and forth on this like we did with the Groupdate report.
Cleaning up stale PRs
Ok Andrew... I'll manage it to do my research with more time. Things are pretty messy here but I'm willing to contribute.
Thanks for you support.
Em qui, 17 de jan de 2019 21:29, Andrew Kane notifications@github.com escreveu:
Closed #121 https://github.com/ankane/ahoy_email/pull/121.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ankane/ahoy_email/pull/121#event-2081656887, or mute the thread https://github.com/notifications/unsubscribe-auth/ABzHStpr145zyC1PiDrgvikdLHz3BpHxks5vEQdAgaJpZM4YYVCa .
This change ensures emails are following inline css guidelines in order to prevent layout style broke in clients like gmail.
For some reason, after the Nokogiri HTML reasembly, sometimes HTML loses some styles. This loss pass unobserved in many cases, but, specifically in gmail, it becomes huge.
For this reason I added Roadie gem and used the transform method to reprocess the html and ensure it's correct.