Re: Poll: are people okay with function/operator table redesign?
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: "David G. Johnston" <david.g.johnston@gmail.com>
Cc: Isaac Morland <isaac.morland@gmail.com>,
PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2020-04-13T22:44:36Z
Lists: pgsql-hackers
Attachments
- table-format-hackery.patch (text/x-diff) patch
- HTML-br.png (image/png)
- HTML-hr.png (image/png)
- PDF.png (image/png)
"David G. Johnston" <david.g.johnston@gmail.com> writes: > On Mon, Apr 13, 2020 at 1:57 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: >> Actually ... if we did it like that, then it would be possible to treat >> the signature + description + example(s) as one big table cell with line >> breaks rather than row-separator bars. >> That would help address the >> inadequate-visual-separation-between-groups issue, but on the other hand >> maybe we'd end up with too little visual separation between the elements >> of a function description. > Speaking in terms of HTML if we use <hr /> instead of <br /> we would get > the best of both worlds. Hm. I quickly hacked up table 9.33 to use this approach. Attached are a patch for that, as well as screenshots of HTML and PDF output. (To get the equivalent of HTML-hr.png, use <hr/> not <br/> in the stylesheet.) I don't think I like the <hr/> version better than <br/> --- it adds quite a bit of vertical space, more than I was expecting really. The documentation I could find with Google suggests that <hr/> can be rendered with quite a bit of variation by different agents, so other people might get different results. (This is with Safari.) It seems like the font differentiation between the description and the other parts is almost, but perhaps not quite, enough separation already. I don't know how to get the equivalent of <hr/> in PDF output, so that version just does line breaks. It seems like the vertical spacing in the examples is a bit wonky, but otherwise it's not awful. Note that the PDF rendering shows the header and function name alignment as I intended them; the HTML renderings are wrong due to website stylesheet issues. regards, tom lane
Commits
-
Doc: re-re-revise markup for tables of functions.
- 4ad047a6eac3 13.0 landed
-
Doc: revise formatting of function/operator tables.
- 737d69ffc3cf 13.0 landed