mirror of
https://github.com/dolanmiu/docx.git
synced 2026-11-30 16:47:55 +01:00
* feat(layout): give a paragraph whose text and mark are all hidden no room, as Word does word-seq.docx Q8 and word-hidden-paragraphs.docx HP1 to HP8: a paragraph with nothing shown and its mark hidden takes no room in Word, whatever its formatting, before a paragraph or a table and at the end of the document, and a line at the end of a table cell. It is read where it is, so its SEQ fields and list number count in order (Q8, HP5), and then left out; its bookmarks start with the block after it (HP3), and the paragraphs around it go by its style for their contextual spacing (HP6c, HP6d). Page breaks and pictures in hidden text take no room (HP4). Where Word hasn't shown what it does, the layout stops: a hidden note reference, a paragraph kept with the next before a hidden one, a box of borders around one, and one at the end of a header, footer or note. * fix(layout): start the bookmarks of hidden paragraphs at the end of the document where its text ends A paragraph with nothing shown and its mark hidden at the end of the body is left out, as it takes no room (word-hidden-paragraphs.docx HP8), but its bookmarks were dropped, so a page reference to one was blank. They now start after the last line: of the last paragraph, or of the last cell of a table.