editorconfig: indent .xsl with 2 spaces

The XSL files are mostly indented with 2 spaces. Using the default
editorconfig rules in VSCode constantly tries to mix in tabs. Add the
2-space rule for .xsl files to fix this.

The .xsl files, like .xml files, use a tab character in place of 8
spaces. This complicates things, and the new rule will prefer just
spaces. To keep the existing sometimes-tab-indented code looking right,
the tab width must be explicitly set to 8.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
This commit is contained in:
Pekka Paalanen 2025-12-29 11:10:19 +02:00
parent 99638501a1
commit 5b59b34a27

View file

@ -14,6 +14,11 @@ indent_style = tab
indent_size = 2
tab_width = 8
[*.xsl]
indent_style = space
indent_size = 2
tab_width = 8
[*.py]
indent_style = space
indent_size = 4