Fixes #586 (Github Issue)
Use Jinja2 lstrip_blocks option in templates to ensure consistent indentation in generated files.