public inbox for [email protected]  
help / color / mirror / Atom feed
From: Paul A Jungwirth <[email protected]>
To: [email protected]
Subject: Fill page when printing archived threads
Date: Mon, 19 Jan 2026 09:45:53 -0800
Message-ID: <CA+renyXaMYGFKvyqt4ZpQFUu8A70VConiNSzPM=Pn_xKqeRDEw@mail.gmail.com> (raw)

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/[email protected]
(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              ~{:-)
[email protected]


Attachments:

  [application/pdf] pgsql-thread-printing-with-block.pdf (1.1M, ../CA+renyXaMYGFKvyqt4ZpQFUu8A70VConiNSzPM=Pn_xKqeRDEw@mail.gmail.com/2-pgsql-thread-printing-with-block.pdf)
  download

  [application/pdf] pgsql-thread-printing-with-inline-block.pdf (1.1M, ../CA+renyXaMYGFKvyqt4ZpQFUu8A70VConiNSzPM=Pn_xKqeRDEw@mail.gmail.com/3-pgsql-thread-printing-with-inline-block.pdf)
  download

  [text/x-patch] v1-0001-Fill-pages-better-when-printing-mailing-list-arch.patch (992B, ../CA+renyXaMYGFKvyqt4ZpQFUu8A70VConiNSzPM=Pn_xKqeRDEw@mail.gmail.com/4-v1-0001-Fill-pages-better-when-printing-mailing-list-arch.patch)
  download | inline diff:
From 89c25a6199609b164b6342e2eb66e5189735ac67 Mon Sep 17 00:00:00 2001
From: "Paul A. Jungwirth" <[email protected]>
Date: Mon, 19 Jan 2026 09:30:31 -0800
Subject: [PATCH v1] Fill pages better when printing mailing list archive
 threads

The .message-content CSS rule applied a display: inline-block property,
but this caused all text of a message to stick together more tightly
than to the header or the next message, making pages print with large
empty spaces. By using display: block, we allow paragraphs to split
normally.
---
 django/media/css/main.css | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/django/media/css/main.css b/django/media/css/main.css
index f7d6646..2e356e7 100644
--- a/django/media/css/main.css
+++ b/django/media/css/main.css
@@ -772,7 +772,7 @@ h3.messages {
 }
 
 .message-content {
-    display: inline-block;
+    display: block;
     font-family: monospace, monospace;
     font-size: 0.7em;
     line-height: 1.2em;
-- 
2.47.3



view thread (6+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: Fill page when printing archived threads
  In-Reply-To: <CA+renyXaMYGFKvyqt4ZpQFUu8A70VConiNSzPM=Pn_xKqeRDEw@mail.gmail.com>

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

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