# Is there a standard way to do indentation in template files?

**URL:** <https://forum.ansible.com/t/is-there-a-standard-way-to-do-indentation-in-template-files/27673>\
**Category:** Ansible Project\
**Created:** [May 31, 2018, 12:59pm UTC](https://forum.ansible.com/t/is-there-a-standard-way-to-do-indentation-in-template-files/27673 "2018-05-31T12:59:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nusenu](https://avatars.discourse-cdn.com/v4/letter/n/4da419/32.png) [@nusenu](https://forum.ansible.com/u/nusenu)\
**Post date:** [May 31, 2018, 12:59pm UTC](https://forum.ansible.com/t/is-there-a-standard-way-to-do-indentation-in-template-files/27673/1 "2018-05-31T12:59:00Z")

</div>

Hi,

I'd like to have indentation in my jinja2 templates like:

{% if ..  
&nbsp;&nbsp;{% if ..  
&nbsp;&nbsp;&nbsp;&nbsp;configline foo

without having the indentation in the resulting config file.

Is there a standard way to do that?

thanks,  
nusenu
