-
Notifications
You must be signed in to change notification settings - Fork 29
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
Imbricated tables in HTML emails and --css --ignore-css-colour #155
Comments
jugglerchris
added a commit
that referenced
this issue
May 31, 2024
Thanks for the report! This is definitely a bug (it's been there since the start of CSS support), which I believe is fixed in #156. |
Thanks, tested it and it solved the issue. |
I've published 0.13.0-alpha.1 with this change. Thanks again! |
jugglerchris
added a commit
that referenced
this issue
Oct 1, 2024
Cherry pick commit 6b020b7 from main.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I updated my patched version of the html2text script with the new 0.13 release, I tested it on a few emails and found one email that did not output anything.
I'm using
--colour --css --ignore-css-colour
to get custom text formats but still hide some elements that should not appear.There is no zero height element or any reference to display or overflow in the email sources, but ater some tests I found that if I remove the top 'tr' and 'td' opening and closing tags in the parent table, it works then, every other element is inside imbricated tables inside this one.
The concerned html email:
config = config.raw_mode(true);
and some changes inmatch annotation {}
, then I build withcargo build --features css --example html2text
html2text --width 80 --wrap-width 80 --colour --ignore-css-colour --css email.html
The text was updated successfully, but these errors were encountered: