pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Doc: improve PDF presentation of some tables by adjusting column
Date: Mon, 04 May 2020 20:17:00 +0000
Message-ID: <E1jVhWO-0006uu-04@gemulon.postgresql.org> (raw)

Doc: improve PDF presentation of some tables by adjusting column widths.

The PDF toolchain defaults to laying out all columns of a table with
equal widths, in contrast to the HTML rendering which automatically
varies the column widths to fit the data.  In many places, this
results in very badly laid-out tables, with lots of useless whitespace
in some places and text that overruns its cell in other places.

For tables that have reasonably static content, we can improve
matters by adding <colspec> entries to hand-assign the column widths.
This commit does that for a few of the tables that were worst off;
it eliminates close to 200 "contents ... exceed the available area"
warnings in an A4 PDF build.

I also forced align="left" in these tables, overriding the PDF
toolchain's default which is evidently "justify".  (The HTML toolchain
seems to default to that already.)  Anyplace where things are tight
enough that we need to worry about this, forced justification tends to
look truly awful.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5545b69ae65f27ba1f4ceaf24486e98c186e9412

Modified Files
--------------
doc/src/sgml/charset.sgml               | 16 +++++++++++++++-
doc/src/sgml/errcodes.sgml              |  4 ++--
doc/src/sgml/features.sgml              |  8 ++++++++
doc/src/sgml/generate-keywords-table.pl |  5 +++++
4 files changed, 30 insertions(+), 3 deletions(-)



Message-ID: <E1jVhWO-0006uu-04@gemulon.postgresql.org>
Permalink:  ../E1jVhWO-0006uu-04@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jVhWO-0006uu-04@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Doc: improve PDF presentation of some tables by adjusting column
  In-Reply-To: <E1jVhWO-0006uu-04@gemulon.postgresql.org>
  References: <E1jVhWO-0006uu-04@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox