Preserve list indentation and paragraph pagination - #17
Draft
PiotrCzapla wants to merge 1 commit into
Draft
Conversation
Contributor
|
What's needed to make this ready for review? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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=trueandkeep-with-next=false. A.keep-togetherdiv 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:
Before: the producer paragraph is separated from the recording notice. Both pages are visible.
After: the producer paragraph moves to page 2 with the notice. Both pages are visible.