Skip to content

Preserve list indentation and paragraph pagination - #17

Draft
PiotrCzapla wants to merge 1 commit into
mainfrom
pc/paragraph-pagination
Draft

Preserve list indentation and paragraph pagination#17
PiotrCzapla wants to merge 1 commit into
mainfrom
pc/paragraph-pagination

Conversation

@PiotrCzapla

@PiotrCzapla PiotrCzapla commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Each continuation paragraph in a list retains its indentation. Previously, lxml moved the shared indentation element between paragraphs and only the last continuation kept it.

Paragraphs accept keep-with-next=true and keep-with-next=false. A .keep-together div keeps consecutive paragraphs together. A page break after a table is transferred to the next paragraph to avoid an extra blank page.

This PR is independent of the included-document reference changes in #15. Table-row defaults are already on main.

Validation: all 38 default converter tests passed. Two tests requiring a live application or source checkout were deselected by project defaults. Generated DOCX archives passed schema checks and Pandoc readback.

The following images show actual LibreOffice renders of synthetic recording instructions. Source and reproduction steps.

List continuation paragraphs before and after:

List indentation before and after: all four continuation paragraphs now align

Before: the producer paragraph is separated from the recording notice. Both pages are visible.

Before: producer paragraph on page one and notice on page two

After: the producer paragraph moves to page 2 with the notice. Both pages are visible.

After: producer paragraph and notice together on page two

@jph00

jph00 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

What's needed to make this ready for review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants