Re: Add trim_trailing_whitespace to editorconfig file

From: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Daniel Gustafsson <daniel(at)yesql(dot)se>, Melanie Plageman <melanieplageman(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>
Subject: Re: Add trim_trailing_whitespace to editorconfig file
Date: 2024-08-09 14:09:59
Message-ID: CAGECzQQXJqGNuNgnMB3Ug_GJDfbqCq_HEiZf4iurTLhE3nMnJA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 9 Aug 2024 at 15:16, Peter Eisentraut <peter(at)eisentraut(dot)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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dmitry Dolgov 2024-08-09 14:29:48 Re: Recovery of .partial WAL segments
Previous Message vignesh C 2024-08-09 13:21:41 Re: Logical Replication of sequences