From 5b59b34a2732348204d1affccc02fcac5affe255 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Mon, 29 Dec 2025 11:10:19 +0200 Subject: [PATCH] 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 --- .editorconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.editorconfig b/.editorconfig index d92e5e96..cd9aa7f6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -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