From 2bb006d80efc1d4d7e584498b5b49095e4cc5c8b Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 1 Feb 2025 19:11:44 +0200 Subject: [PATCH] feat(print): better widows & orphans support --- src/public/stylesheets/print.css | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/public/stylesheets/print.css b/src/public/stylesheets/print.css index 2ff884440..3667e2c60 100644 --- a/src/public/stylesheets/print.css +++ b/src/public/stylesheets/print.css @@ -213,4 +213,18 @@ span[style] { .note-detail-printable .footnote-reference a, .footnote-back-link a { text-decoration: none; - } \ No newline at end of file + } + +/* + * Widows and orphans + */ +p, +blockquote { + widows: 4; + orphans: 4; +} + +pre > code { + widows: 6; + orphans: 6; +} \ No newline at end of file