Skip to content

oxoffice v0.8.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 12:16
· 39 commits to main since this release

[0.8.0] - 2026-11-27

✨ Highlights

  • Empty elements, both writings: an element with nothing inside reads the same written <w:b/> or <w:b></w:b> (LibreOffice writes w:fldChar this way): toggles, tabs, breaks, empty notes; every document reader collapses both, and a save keeps the writing it read (#679, #689).
  • Google Docs files: a table Google writes alone in a locked block content control has a location and works from Rust and Python, and doc.paragraphs no longer stops on its cells (#683, #685); accept_all and reject_all resolve Google suggestions that remove a final paragraph mark, empty a wrapped paragraph or chain across block controls (#686, #688).
  • Compare: a text box deleted, replaced or reframed with an edit is redlined, nested boxes too (#682), under whatever prefix the part binds (#690); a footnote or endnote with no paragraph compares whole, and a redline brings the styles and keeps the comments it names (#681).
  • Compare, empty containers: a block content control, header, footer, text box or note empty in one version and holding paragraphs in the other is compared instead of refused: the empty side reads as one empty paragraph, so accept gives the full version and reject the empty one with one empty paragraph (#692).
  • Default namespace: a Word document whose root binds WordprocessingML as the default namespace is edited, compared, accepted and rejected like its w: writing (#687); one declared below the root, which no known producer writes, is refused with what to do instead (#691).
  • Corpus: a table of contents inserted by Word, and Google Docs comment wrappers (goog_rdk) with the empty form Word leaves (#678, #684).
  • Behaviour change: for a document holding a table in a block content control, doc.paragraphs, paragraph_visibility and find_content_index no longer reach that table's cells; read them through the table (#683).
  • Breaking (plumbing crates only): oxoffice_core::raw_xml::capture_empty_element is removed (use capture_empty(e, reader.empty_writing())), and the public readers of oxoffice-docx-oxml and oxoffice-drawing take oxoffice_core::xml_reader::Reader (#689).
  • Limitations: oxoffice limitations lists two fewer entries (docx-compare-empty-container, docx-default-namespace-below-root) (#691, #692).

🚀 Features

🐛 Bug fixes

  • (compare) Empty notes compare whole, a redline keeps the styles and comments it names (#681) (719a3bf) in #681 by @hadim
  • (docx) Compare redlines a text box deleted, replaced or reframed with an edit (#682) (ef8007f) in #682 by @hadim
  • (python) Cell.tables lists the tables of a cell's block content controls (#685) (6a5b8bc) in #685 by @hadim
  • (docx) Resolve google suggestions that remove a final mark or empty a wrapped paragraph (#686) (386a173) in #686 by @hadim
  • (docx) A word part written with the default namespace can be edited (#687) (96935d0) in #687 by @hadim
  • [breaking] An element with nothing inside reads the same in both writings (#689) (6115f5d) in #689 by @hadim
  • (docx) Merge a removed mark across block controls, keep it before a table (#688) (39aaf1a) in #688 by @hadim
  • (docx) Compare finds text boxes under the prefix each part binds to wordprocessingml (#690) (d8a1f08) in #690 by @hadim
  • (compare) A container empty in one version compares as one empty paragraph (#692) (a629d9d) in #692 by @hadim

🚜 Refactoring

📚 Documentation

  • A limitation only for a case that can happen and cannot be fixed now (#691) (f3a26d1) in #691 by @hadim

🧪 Tests

  • (corpus) Add a table of contents inserted by word (#678) (1f2adc8) in #678 by @hadim
  • (corpus) Add a google docs comment export and its word copy with an empty goog_rdk control (#684) (57f2ebe) in #684 by @hadim