mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-25 10:57:14 -06:00
* #2853: Word XML, web pages and MHTML saved as .doc open by what they hold A Word 2003 XML Document named `.doc` went to the Word 97-2003 reader, which refused it ("Invalid CFB file"), and the window showed a blank page. Word XML (2003 or Flat OPC), a web page and a Single File Web Page (MHTML) under a `.doc`, `.docx` or `.rtf` name now open by what they hold, as in Word. MHTML is read for the first time (`.mht`/`.mhtml` too): the MIME parts are split and decoded, the page is imported as HTML in its charset and its pictures load from the other parts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #2853: leave MHTML to #1104, keep Word XML and web pages saved as .doc #1104 adds an MHT reader (`wordcraft_formats::mht`), so this branch drops its own MHTML reader and the `.mht`/`.mhtml` extensions instead of adding a second one. A Word XML Document or a web page under a `.doc`, `.docx` or `.rtf` name still opens by what it holds (the #2853 fix). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #2853: a web page's signature needs its tag name to end (`<htmlish>` is other XML) CodeRabbit: `starts_with("<html")` took XML with a root like `<htmlish>` under a `.doc` name for a web page, though XML that isn't a Word document stays an error. `<html` and `<!DOCTYPE html` now need white space, `>` or `/` after them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #2853: rustfmt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>