Skip to content

Build your personal knowledge base with Trilium Notes

feat(print): fix widowed headings

Elian Doran6ac868555f35
diff --git a/src/public/stylesheets/print.css b/src/public/stylesheets/print.css
index 3667e2c605..6e0591be60 100644
--- a/src/public/stylesheets/print.css
+++ b/src/public/stylesheets/print.css
@@ -227,4 +227,9 @@ blockquote {
pre > code {
widows: 6;
orphans: 6;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ page-break-after: avoid;
+ break-after: avoid;
}
\ No newline at end of file