Support x: tags in styles.xml #1114
No reviewers
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#1114
Loading…
Reference in New Issue
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The XML tags in
styles.xml
sometimes have an extrax:
which messes upparse_sty_xml
(see https://social.msdn.microsoft.com/Forums/vstudio/en-US/a72442fd-a1a6-446e-9416-876f7669d8e2/openxml-excel-date-formatting for more examples)
This is a simple fix for the problem
@tombousso Do you have, or can you generate, a sample file?
problem.xlsx
Here's a sample file. In Excel and Libreoffice it will be recognized as a date, but
js-xlsx
does not currently recognize it as a dateThanks for sharing! Oddly that's the only part that uses namespaced xml. Some strict files namespaced xml in the worksheet and workbook xml but not the styles, go figure.
FYI the new expressions change the capture group positions. The fix should make those non-capture by putting
?:
just after the open parenthesis -- see Note 1 from ECMA-262 v5.1 section 15.10.2.8:Thanks for the fix!
We amended the commit, so unfortunately github will show this PR as closed. If you link your email address to your account, it will show you as a contributor to the project.
Pull request closed