frictionlessdata / tabulator-py

Python library for reading and writing tabular data via streams.
https://frictionlessdata.io
MIT License
235 stars 42 forks source link

Fix issue with multicode number formats #333

Closed cschloer closed 4 years ago

cschloer commented 4 years ago

Overview

There are issues with the preserve_formatting code for "multisections": https://support.microsoft.com/en-us/office/review-guidelines-for-customizing-a-number-format-c0a1d1fa-d3f4-4018-96b7-9c9354dd99f5?ui=en-us&rs=en-us&ad=us

An example code would look like 0.0_);[RED]\(0.000\).

I've updated the code to properly split by semicolon, and use the second section for negative numbers.


Please preserve this line to notify @roll (lead of this repository)