qrilka / xlsx

Simple and incomplete Excel file parser/writer
MIT License
130 stars 64 forks source link

List of Formatted #106

Closed Anarchist666 closed 6 years ago

Anarchist666 commented 6 years ago

The Formatted has formattedCellMap and formattedStyleSheet named fields. The Xlsx has _xlSheets(list of sheets) and _xlStyles (not a list) named fields. If I has list of Formatted, how I can merge their formattedStyleSheet :: StyleSheet into one_xlStyles :: Styles?

qrilka commented 6 years ago

There is #83 about doing formatting on multiple sheets. See my last comment there.

Anarchist666 commented 6 years ago

Thank you, chaining function work perfectly in my case. But, may be add [Formatted] -> ([Worksheet], StyleSheet) function using updateStyleSheetFromState and stateFromStyleSheet eg? Or add chaining into Formatted.hs.

qrilka commented 6 years ago

I'm not against adding some helper to format multiple sheets, probably just that chaining function just renamed to formattedSheets. I'd be glad to get a PR. But overall what about closing this issue and continue duscussion in #83 if you have more comments on the topic?