Skip to main content

Crate cli_justify

Crate cli_justify 

Source

Structs§

PartialParagraph
A paragraph (or paragraph fragment) at a page boundary together with the number of justified output lines it occupies when laid out alone. The line_count lets a consumer splice a re-justified seam back into the page’s lines by replacing exactly the partial’s worth of lines.
PdfPageJustified
Justified output for a single PDF page, augmented with the raw text of any partial paragraphs that may continue onto a neighbouring page.

Functions§

inter_page_blank_count
Number of blank lines to insert between two adjacent PDF page outputs in the streaming reader.
justify
justify_pdf_hybrid
justify_pdf_page
justify_pdf_seam
Re-justify a seam paragraph formed by joining the trailing partial of one page with the leading partial of the next. The joined text is fed through the standard PDF justifier so soft hyphens, mid-word breaks and similar cross-line repairs happen as if the paragraph had never been split.
wrap_preserve_whitespace