]> granicus.if.org Git - postgresql/commit
Improve psql's tabular display of wrapped-around data by inserting markers
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 22 Nov 2009 05:20:41 +0000 (05:20 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 22 Nov 2009 05:20:41 +0000 (05:20 +0000)
commit1753337cf5d0aa5ba04b29ded65b824d9cf12c00
treeadefbd23fd367d32f374e9ef9188b4ef37d47820
parent93d3bac5648bddfe195a9cecc45ef0a2da5e85a8
Improve psql's tabular display of wrapped-around data by inserting markers
in the formerly-always-blank columns just to left and right of the data.
Different marking is used for a line break caused by a newline in the data
than for a straight wraparound.  A newline break is signaled by a "+" in the
right margin column in ASCII mode, or a carriage return arrow in UNICODE mode.
Wraparound is signaled by a dot in the right margin as well as the following
left margin in ASCII mode, or an ellipsis symbol in the same places in UNICODE
mode.  "\pset linestyle old-ascii" is added to make the previous behavior
available if anyone really wants it.

In passing, this commit also cleans up a few regression test files that
had unintended spacing differences from the current actual output.

Roger Leigh, reviewed by Gabrielle Roth and other members of PDXPUG.
19 files changed:
contrib/dblink/expected/dblink.out
contrib/pgcrypto/expected/crypt-blowfish.out
contrib/pgcrypto/expected/pgp-armor.out
contrib/pgcrypto/expected/pgp-decrypt.out
contrib/tsearch2/expected/tsearch2.out
contrib/tsearch2/expected/tsearch2_1.out
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/command.c
src/bin/psql/print.c
src/bin/psql/print.h
src/test/regress/expected/create_cast.out
src/test/regress/expected/dependency.out
src/test/regress/expected/foreign_data.out
src/test/regress/expected/foreign_key.out
src/test/regress/expected/guc.out
src/test/regress/expected/prepare.out
src/test/regress/expected/triggers.out
src/test/regress/expected/tsearch.out
src/test/regress/expected/with.out