Re: Add trim_trailing_whitespace to editorconfig file - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: Add trim_trailing_whitespace to editorconfig file
Date
Msg-id CAGECzQQXJqGNuNgnMB3Ug_GJDfbqCq_HEiZf4iurTLhE3nMnJA@mail.gmail.com
Whole thread Raw
In response to Re: Add trim_trailing_whitespace to editorconfig file  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers
On Fri, 9 Aug 2024 at 15:16, Peter Eisentraut <peter@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.



pgsql-hackers by date:

Previous
From: vignesh C
Date:
Subject: Re: Logical Replication of sequences
Next
From: Dmitry Dolgov
Date:
Subject: Re: Recovery of .partial WAL segments