Tweak editorconfig for postgis_proc_upgrade.pl and indent it properly

It looks like most lines are using 4-spaces indent, make that official
and tweak the non-conforming lines (53 lines over 580 total lines)

git-svn-id: http://svn.osgeo.org/postgis/trunk@17873 b70326c6-7e19-0410-871a-916f4a2858ee
svn-3.0
Sandro Santilli 2019-10-07 06:40:18 +00:00
parent 7e7a2ec19f
commit da1ea27f20
2 changed files with 56 additions and 52 deletions

View File

@ -21,6 +21,11 @@ indent_style = tab
[*.pl]
indent_style = tab
# Exception: utils/postgis_proc_upgrade.pl uses 4-spaces indent
[utils/postgis_proc_upgrade.pl]
indent_style = space
indent_size = 4
# SQL files want tab indentation
[*.{sql,sql.in}]
indent_style = tab

View File

@ -272,7 +272,6 @@ EOF
my $pg12_def = $def;
$pg12_def =~ s/CREATE AGGREGATE/CREATE OR REPLACE AGGREGATE/;
if ($pg12_def eq "")
{
$pg12_def = "RAISE EXCEPTION 'Could not parse AGGREGATE'";