On Fri, 9 Aug 2024 at 15:16, Peter Eisentraut <pe...@eisentraut.org> wrote: > -*.sgml whitespace=space-before-tab,trailing-space,tab-in-indent > -*.x[ms]l whitespace=space-before-tab,trailing-space,tab-in-indent > +*.py > whitespace=space-before-tab,trailing-space,tab-in-indent,tabwidth=4 > +*.sgml > whitespace=space-before-tab,trailing-space,tab-in-indent,tabwidth=1 > +*.xml > whitespace=space-before-tab,trailing-space,tab-in-indent,tabwidth=1 > +*.xsl > whitespace=space-before-tab,trailing-space,tab-in-indent,tabwidth=2 > > Why add tabwidth settings to files that are not supposed to contain tabs?
That's there so that the generated .editorconfig file the correct indent_size. I guess another approach would be to change the generate_editorconfig.py script to include hardcoded values for these 4 filetypes.