feat(write): cell styles for xlsx and ods - #90
Merged
Merged
Conversation
… layout, column batches, zip of csv sheets
…el's, refused when outside it
…reaches every format, csv ignores it
…nd date formats, resolved per kind on first use
…s.xml, written at the end
…mped per writer; escape surrogate pairs and control characters in format codes; tidy style constants and docs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 1 of the styled/columnar export (spec
docs/superpowers/specs/2026-10-04-styled-columnar-export-design.md§1). Closes #86. Part of #67.CellStyle(fill, font colour/bold/italic, number format, date format, horizontal alignment, wrap, thin border),CellColor,CellFont,CellBorder.NumberFormat/DateFormatparse a supported subset of Excel format codes; anything else is refused atParse, never at write time. Number and date formats are separate, so a date always keeps a date format.writer.Style(style)→StyleId(stamped per writer; a foreign id is refused);Write(value, StyleId)overloads. Up to 4096 styles per file.styles.xmlbuilt at the end; ods: common cell styles and data styles instyles.xml, written at the end — styles may appear mid-stream. Csv ignores styles.[inside a quoted literal was misread as a date.