tafia / calamine

A pure Rust Excel/OpenDocument SpreadSheets file reader: rust on metal sheets
MIT License
1.6k stars 155 forks source link

feat: Implement RichText support for XLSX #441

Open FlixCoder opened 4 weeks ago

FlixCoder commented 4 weeks ago

For #440 .

I implemented a RichText representation and changed the Data representation to use it. The parsing is so far only implemented for XLSX, the other formats continue to only ever produce Data::String even if it is actually rich text content.

The shared strings also have to be rich text now ^^

I think it turned out quite well, let me know what you think :)

FlixCoder commented 3 weeks ago

Adjusted to the requested changes. I also found a few more little things that I missed, e.g. the DataType::get_string implementation for Data and such.

FlixCoder commented 2 weeks ago

I can't really progress until https://github.com/tafia/calamine/pull/441#discussion_r1633001639 . Could you elaborate a bit how you imagine things to be?