Custom Email Template HTML Minification and Empty Lines Bug

Have you tried adding a minus sign to your expressions and comments? It’s an indicator to remove white space at the start and end of a block.

{%- expression -%}
{#- comment -#}