Only add page break before first line of a heading in PDF and preview (#2415)

This commit is contained in:
Veronica Berglyd Olsen
2025-06-18 19:25:39 +02:00
parent 2ec943d118
commit 2176dd2020
3 changed files with 36 additions and 10 deletions
+1
View File
@@ -52,6 +52,7 @@ QtVAlignSuper = QTextCharFormat.VerticalAlignment.AlignSuperScript
QtPageBreakBefore = QTextFormat.PageBreakFlag.PageBreak_AlwaysBefore
QtPageBreakAfter = QTextFormat.PageBreakFlag.PageBreak_AlwaysAfter
QtPageBreakAuto = QTextFormat.PageBreakFlag.PageBreak_Auto
QtPropLineHeight = 1 # QTextBlockFormat.LineHeightTypes.ProportionalHeight