Fill page when printing archived threads

From: Paul A Jungwirth <pj(at)illuminatedcomputing(dot)com>
To: pgsql-www(at)postgresql(dot)org
Subject: Fill page when printing archived threads
Date: 2026-01-19 17:45:53
Message-ID: CA+renyXaMYGFKvyqt4ZpQFUu8A70VConiNSzPM=Pn_xKqeRDEw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-www

Hello, www folks!

When printing some mailing list threads, I wind up with mostly blank
vertical space on the page. For example this one:
https://www.postgresql.org/message-id/flat/3c86a16f-4272-4df3-9959-70a9a7d88a71(at)ewie(dot)name
(PDF attached).

The reason is the .message-content CSS rule sets the display:
inline-block property, and that causes the paragraphs to "stick
together" more tightly than to the header or the next message.
Changing the property to "block" makes the thread print much more
naturally (sample PDF attached, also a patch).

What do you think of this change?

Btw pgweb has the same CSS rule, although it doesn't appear to be used
by anything in that repo.

I haven't tested with a locally-running copy of the site. Are there
instructions anywhere on setting that up? I'm comfortable with Django,
but I would still need a database, possibly a settings file, etc.

Yours,

--
Paul ~{:-)
pj(at)illuminatedcomputing(dot)com

Attachment Content-Type Size
pgsql-thread-printing-with-block.pdf application/pdf 1.1 MB
pgsql-thread-printing-with-inline-block.pdf application/pdf 1.1 MB
v1-0001-Fill-pages-better-when-printing-mailing-list-arch.patch text/x-patch 992 bytes

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Andrey Borodin 2026-01-20 11:56:03 Re: Introduce contributor badges
Previous Message Christoph Berg 2026-01-19 16:28:11 Introduce contributor badges