fix: position reference footer below content to prevent overlap (Closes #25) #28
Reference in New Issue
Block a user
Delete Branch "feature/issue-25-fix-reference-rendering"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
bottomMargin, preventing overlap between notes text and reference footercalculateFooterReservationinPdfBookRendererand height calculation inMeasurementEngineto match the simplified layouttoc.highlight_column: "Seite"to examplesongbook.yamlto demonstrate column highlighting in the TOCDetails
The root cause was that
renderReferenceFooterpositioned itself at a fixed offset frombottomMargin, while notes text flowed downward from the current y-position. When both were present (e.g., "Die Gedanken sind frei" with its note and MO/PfLB references), the note text would extend into the fixed reference footer region, causing visual overlap.The fix renders the reference footer in sequence after notes/metadata content, with a separator line, abbreviation row, and page number row flowing naturally from the current position.
Test plan
./gradlew test)highlight_column: "Seite"correctly highlights the Seite column in the TOCCloses #25