Skip to content

fix(doc-viewer): table formatting + real .doc regression tests - #267

Merged
slaveofcode merged 1 commit into
developfrom
fix/doc-viewer-tables
Aug 17, 2026
Merged

fix(doc-viewer): table formatting + real .doc regression tests#267
slaveofcode merged 1 commit into
developfrom
fix/doc-viewer-tables

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

Continuous-improvement pass on the legacy .doc viewer, validated against real Word 97-2003 .doc files (generated with macOS textutil, neutral synthetic content).

Verified correct on: plain text, Unicode (smart quotes, accents, em-dash), a 119-paragraph long doc, tables, and bulleted lists.

Improvement: tables previously collapsed onto one line (all cell/row marks → tabs). Now a run of 2+ marks (cell mark + row-end mark) becomes a line break, so tables render row-per-line with tab-separated cells, and leading tabs are stripped. Lists come out one bullet per line.

Regression tests: two neutral binary .doc fixtures + assertions (checked for identity/metadata leaks before committing — clean).

Verify: 1330 tests green (incl. 2 new fixture tests), lint 0 errors.

Tested against real Word 97-2003 .doc files: extraction is correct for
plain text, Unicode (smart quotes/accents/em-dash), long docs, tables and
lists. Improved cleanup so table rows (a run of 2+ cell/row marks) become
line breaks with tab-separated cells and leading tabs stripped, instead of
collapsing onto one line. Adds two neutral binary .doc fixtures + tests.
@slaveofcode
slaveofcode merged commit 4a4861f into develop Aug 17, 2026
1 of 2 checks passed
@slaveofcode
slaveofcode deleted the fix/doc-viewer-tables branch August 17, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant