Files
genoffice/packages
Waiel Al-Shujaa 091c5994fd fix(file-parse): keep xlsx and pptx attachment text verbatim (#51)
The two XMLParser instances in file-parse ran with fast-xml-parser's
defaults, so element text was numerically coerced and trimmed before it
reached the model: <t>02139</t> read as 2139, and the space carried by an
xml:space="preserve" run was dropped, so a bolded word in a slide turned
"Quarterly revenue grew 12% in Q3" into "Quarterlyrevenuegrew12%inQ3".

Set trimValues and parseTagValue to false on both, matching docx-engine's
xml-utils and pptx-engine's parse. trimValues is per parser rather than
per element, so two readers that were relying on it change with it: the
xlsx parser keeps collapsing attribute whitespace, since r:id, Target and
the cell ref are structural and a padded Target otherwise drops a whole
sheet, and collectText now pushes a primitive only when it came from an
a:t, so an <a:br> written across lines no longer leaks into the paragraph.
2026-08-08 11:36:21 +08:00
..
2026-08-04 21:26:02 +08:00
2026-08-02 19:52:16 +08:00
2026-08-07 14:44:01 +08:00