Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formats with excessive indentation #4

Open
gavinmcfarland opened this issue Aug 20, 2019 · 1 comment
Open

Formats with excessive indentation #4

gavinmcfarland opened this issue Aug 20, 2019 · 1 comment

Comments

@gavinmcfarland
Copy link

For some reason, this extension creates excessive indentation when the template file is saved.

I know VScode uses beautify but I can't think what would cause this to create 4 indents per line.

{% for rule in rules -%}
				{%- if rule.props -%}
								.{{rule.abbr}}
								{
								{%- for prop in rule.props %}
												{{prop.name | kebabcase}}:
												{{prop.value}};
								{%- endfor %}
								}
				{%- endif -%}
				{% for modifier in rule.modifiers %}
								{% if modifier.name === 'default' %}
												.{{rule.abbr}}
												{
								{%- else -%}
												.{{rule.abbr}}-{{modifier.name}}
												{
								{%- endif -%}
								{%- for prop in modifier.props %}
												{{prop.name | kebabcase}}:
												{{prop.value}};
								{%- endfor %}
								}
				{%- endfor -%}
{%- endfor -%}
@Lukica00
Copy link

Lukica00 commented Dec 7, 2022

It seems that you use tabs for indentation. Extension adds indentation characters as if they were space, but in this case they were tabs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants