Skip to content

Backported PR 955 enhancing formatting capabilities#957

Merged
michelebastione merged 2 commits into
mini-software:v1.x-maintenancefrom
michelebastione:formatting-fixes
May 13, 2026
Merged

Backported PR 955 enhancing formatting capabilities#957
michelebastione merged 2 commits into
mini-software:v1.x-maintenancefrom
michelebastione:formatting-fixes

Conversation

@michelebastione
Copy link
Copy Markdown
Collaborator

@michelebastione michelebastione commented May 13, 2026

Made the ExcelFormatAttribute preserve the original numerical type of the data when exporting numbers and dates rather than serializing them to string.

Read #955 for reference.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors OpenXml writing logic to centralize style management via SheetStyleBuildContext and SheetStyleFormatsCache, while adding support for TimeSpan, DateTimeOffset, and TimeOnly types. Feedback identifies a naming and logic error in GetSheetStyleBuilderAsync, an unused cryptography import, and a recurring typo in preprocessor directives targeting '.NET 10'. Reviewers also recommend restoring a removed cancellation check and adopting more idiomatic practices for string comparisons and TimeSpan calculations.

Comment thread src/MiniExcel/OpenXml/ExcelOpenXmlSheetWriter.cs Outdated
Comment thread src/MiniExcel/OpenXml/ExcelOpenXmlSheetWriter.Async.cs
Comment thread src/MiniExcel/OpenXml/ExcelOpenXmlSheetWriter.Async.cs
Comment thread src/MiniExcel/OpenXml/ExcelOpenXmlSheetWriter.Async.cs
Comment thread src/MiniExcel/OpenXml/ExcelOpenXmlSheetWriter.DefaultOpenXml.cs Outdated
Comment thread src/MiniExcel/OpenXml/ExcelOpenXmlSheetWriter.cs Outdated
Comment thread src/MiniExcel/OpenXml/Styles/SheetStyleFormatsCache.cs Outdated
Comment thread src/MiniExcel/OpenXml/Styles/SheetStyleBuildContext.cs
@michelebastione michelebastione merged commit 661df82 into mini-software:v1.x-maintenance May 13, 2026
3 checks passed
@michelebastione michelebastione deleted the formatting-fixes branch May 13, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant