To my convenience I use some formatting in my templates (line breaks, spacing, etc.) For example:

```
{% extends "base.html" %}

{% load tabs %}

{% block content %}
{% block navigation %}
<ul id="user_admin_tabs_list">
    <li><a href="{% url user_admin.views.profile %}" class=
    {% ifactivetab "user_admin_tabs" "profile" %}
        "user_admin_tabs_active_tab"
    {% else %}
        "user_admin_tabs_inactive_tab"
    {% endifactivetab %}>Профиль</a></li>

...

```

But this leads to "ragged" html output. Like this:

```
<ul id="user_admin_tabs_list"> 
    <li><a href="/accounts/profile/profile/" class=

        "user_admin_tabs_active_tab"
    >Профиль</a></li> 

    <li><a href="/accounts/profile/shops/" class=

        "user_admin_tabs_inactive_tab"
    >Магазины</a></li> 

    <li><a href="/accounts/profile/billing/" class=

        "user_admin_tabs_inactive_tab"
    >Биллинг</a></li> 

    <li><a href="/accounts/profile/settings/" class=

        "user_admin_tabs_inactive_tab"
    >Настройки</a></li> 
</ul> 

```

Therefore readability of templates causes bad readability of output html.

What is the decision of this problem?