mirror of
https://github.com/dolanmiu/docx.git
synced 2026-12-01 16:55:59 +01:00
* feat(layout): start a section in the next column as Word does A section that starts in the next column (SectionType.NEXT_COLUMN) starts in the next column of the page when the section before has the same columns and one is left, without evening out the columns before it, and on a new page otherwise, as Word lays out word-rules2.docx's Q5a to Q5d. It stops at what Word hasn't shown yet, which scripts/layout-probes/word-next-column.ts probes. * feat(layout): keep the space before a section's first paragraph in the next column, as Word does Word's PDF of word-next-column.docx showed the rest: the space before is kept at the top of the column as at the top of a page (N1, N2), 3 columns into 2 starts a new page (N3), as many columns of other widths start in the next column (N4), and columns below text aren't evened out, without the empty paragraph's space after below them (N6). It still stops at columns of other widths, whose line width isn't known, and at evening out after a section that started before the last of 3 or more columns. * chore(layout): keep the next-column probe's .docx and Word's PDF of it beside it, as the other probes are * test(layout): say what the next-column test of a paragraph kept with the next checks Its comment said the paragraph moves to the column after, but a paragraph at the top of a column stays there, with its space before, as at the top of a page: the keepNext check only moves what is below something in the column.