# Custom Email Template HTML Minification and Empty Lines Bug

**URL:** <https://community.hubspot.com/t/custom-email-template-html-minification-and-empty-lines-bug/99684>\
**Category:** APIs & Integrations\
**Tags:** developer, templates, object, marketing-email\
**Created:** [February 7, 2024, 5:07pm UTC](https://community.hubspot.com/t/custom-email-template-html-minification-and-empty-lines-bug/99684 "2024-02-07T17:07:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [February 9, 2024, 5:23pm UTC](https://community.hubspot.com/t/custom-email-template-html-minification-and-empty-lines-bug/99684/3 "2024-02-09T17:23:55Z")

</div>

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.

```lia-code-sample
{%- expression -%}
{#- comment -#}

```

---

_[View the full topic](https://community.hubspot.com/t/custom-email-template-html-minification-and-empty-lines-bug/99684)._
