tealeg / xlsx

Go library for reading and writing XLSX files.
Other
5.85k stars 819 forks source link

Add support for StreamCell merging and custom row heights #750

Closed colinmroberts closed 1 year ago

colinmroberts commented 1 year ago

Adds support for Merge() and Height() for StreamCell/StreamRow.

To merge a StreamCell, call Merge(h, v) with the number of extra cells to merge in each direction. Note: does not do any advanced bounds/overlap checking, just ensures that it doesn't go beyond the width of the stream sheet.

To set a custom height, create a StreamRow and call Height(). It must be written to the sheet with WriteRowS().

This PR also resolves a few tests that were broken on the tip of the v1 branch related to styles and date formatting.