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