The page is the unit of layout.
Most web editors draw page breaks over one long scroll. Foli lays text into pages: it measures every line box, breaks paragraphs where they fit, and re-flows only what an edit moved. In the editor above, the paragraph that starts "Every page here is A6" breaks this way from page 1 to page 2.
- Split at a line
- A paragraph continues on the next page from the line that did not fit.
- Widows and orphans
- No single line left alone at the top or bottom of a page.
- Keep with next
- A heading never ends a page without its paragraph.
- Keep lines together
- A paragraph moves whole instead of splitting.
- Sections
- Each section has its own page size and margins.
- One sheet per page, at the section's size.
- 1The paragraph breaks after the last line that fits.
- 2At least two lines carry over: no widow.
- 3The heading stays with its paragraph.