]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Improve placement of "display name" comment in win32_tzmap[] entries.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 24 Apr 2020 21:21:44 +0000 (17:21 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 24 Apr 2020 21:21:44 +0000 (17:21 -0400)
commit351252904a8c5b674a508b7fa5c3924c66d1f7f6
treeafaf9cddf4f007f83ba88105d56b9f4dbd282a4d
parent66be997425cfffd5301463780fd8c45e7b89067e
Improve placement of "display name" comment in win32_tzmap[] entries.

Sticking this comment at the end of the last line was a bad idea: it's
not particularly readable, and it tempts pgindent to mess with line
breaks within the comment, which in turn reveals that win32tzlist.pl's
clean_displayname() does the wrong thing to clean up such line breaks.
While that's not hard to fix, there's basically no excuse for this
arrangement to begin with, especially since it makes the table layout
needlessly vary across back branches with different pgindent rules.
Let's just put the comment inside the braces, instead.

This commit just moves and reformats the comments, and updates
win32tzlist.pl to match; there's no actual data change.

Per odd-looking results from Juan José Santamaría Flecha.
Back-patch, since the point is to make win32_tzmap[] look the
same in all supported branches again.

Discussion: https://postgr.es/m/5752.1587740484@sss.pgh.pa.us
src/bin/initdb/findtimezone.c
src/tools/win32tzlist.pl