trailing whitespace in psql table output

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: trailing whitespace in psql table output
Date: 2010-09-21 18:28:07
Message-ID: 1285093687.5468.18.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Everyone using git diff in color mode will already or soon be aware that
psql, for what I can only think is an implementation oversight, produces
trailing whitespace in the table headers, like this:

two | f1 $
-----+------------$
| asdfghjkl;$
| d34aaasdf$
(2 rows)$

($ is the line end; cf. cat -A). Note that this only applies to
headers, not content cells.

Attached is a patch to fix that.

Attachment Content-Type Size
psql-table-whitespace.patch text/x-patch 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2010-09-21 18:28:57 Re: moving development branch activity to new git repo
Previous Message Magnus Hagander 2010-09-21 18:24:37 Re: moving development branch activity to new git repo