Skip to content

Omitting table borders in plain output #10899

Answered by rnwst
Terrance asked this question in Q&A
Discussion options

You must be logged in to vote

I wrote a filter as well, you can find it here. It is a lot less aggressive than John's filter and simply replaces tables that only contain another table with their contents, thereby preserving layout. Consequently, if one of your emails actually contains a legitimate table, it will still render properly. The filter also flattens Divs, because your email example contained a case where a Table contained a Div (which in turn contained a Table), thereby circumventing my flattening logic.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Terrance
Comment options

@jgm
Comment options

jgm Jun 8, 2025
Maintainer

@Terrance
Comment options

@rnwst
Comment options

Answer selected by Terrance
@Terrance
Comment options

@rnwst
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants