I am using the following block of code in a template:
<hr class="rule">
{% if entry.features | length %}
<div class="feature-block">
<h4 class="is-uppercase">Features</h4>
<ul class="features fa-ul">
{% for block in entry.features %}
<li><i class="fa-li fa fa-check"></i> {{ block.feature }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
The if statement is adding whitespace to the markup which causes styling issues.
How can I correct this? Do I need to format the code block differently?