Skip to content

feat(go): add advanced styling (rotation, indent, super/sub, strikethrough color, row auto-fit) - #3

Merged
Mukbeast4 merged 1 commit into
mainfrom
feature/advanced-styling
Apr 24, 2026
Merged

feat(go): add advanced styling (rotation, indent, super/sub, strikethrough color, row auto-fit)#3
Mukbeast4 merged 1 commit into
mainfrom
feature/advanced-styling

Conversation

@Mukbeast4

Copy link
Copy Markdown
Owner

Summary

  • Alignment.Rotation (degrees, auto-normalized to 0-360) → style:rotation-angle
  • Alignment.Indent (levels of 0.25cm) → fo:margin-left
  • Font.VerticalAlign (super/sub) → style:text-position
  • Font.StrikethroughColorstyle:text-line-through-color (implies solid strikethrough)
  • SetRowAutoFit/GetRowAutoFit — symmetric to existing SetColAutoFit

Why

Fills the styling gaps against common ODF attributes. All fields are optional additions to existing structs — fully backwards-compatible.

Test plan

  • `go test ./...`
  • `go vet ./...`
  • `gofmt -s -l .` (empty)
  • 9 new tests including round-trip for row auto-fit and a full advanced-style roundtrip
  • Manual: open styled `.ods` in LibreOffice Calc to verify rotation/indent/super/sub renders correctly

@Mukbeast4
Mukbeast4 merged commit 7baafb2 into main Apr 24, 2026
2 checks passed
@Mukbeast4
Mukbeast4 deleted the feature/advanced-styling branch April 24, 2026 10:05
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