diff options
| author | Randy Morgan <[email protected]> | 2012-04-02 21:41:37 -0700 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-04-02 21:41:37 -0700 |
| commit | de475afa8d91fedf84d1d90e1407cc404ee4b5df (patch) | |
| tree | dfc5c4fe5f043a00981e89bdd6a6e53d4cf7f6d8 /examples | |
| parent | 02341a99e6dcc9f4bb1c4273fac9c3d3cf6c642d (diff) | |
| parent | d2b1274f7bf6058e484158cfd78b4ba7212f91b2 (diff) | |
| download | caxlsx-de475afa8d91fedf84d1d90e1407cc404ee4b5df.tar.gz caxlsx-de475afa8d91fedf84d1d90e1407cc404ee4b5df.zip | |
Merge pull request #73 from jurriaan/empty-cell
Support for empty cells like Excel
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/example.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/example.rb b/examples/example.rb index 04ad6f4c..d93f5dcc 100644 --- a/examples/example.rb +++ b/examples/example.rb @@ -266,7 +266,8 @@ end wb.add_worksheet(:name => "custom column widths") do |sheet| sheet.add_row ["I use autowidth and am very wide", "I use a custom width and am narrow"] - sheet.column_widths nil, 3 + sheet.add_row ['abcdefg', 'This is a very long text and should flow into the right cell', nil, 'xxx' ] + sheet.column_widths nil, 3, 5, nil end ##Fit to page printing |
