cxn03651/writeexcel — Issue #15: bug in write_comment
Author: d4v1d82
Created: 2011-11-20 10:58:54+00:00
State: open

I'm trying to create an excel file with a lot of comments and I've noticed that, when I put more than one note per row, only the last one is created.

```ruby

require 'rubygems'
require 'writeexcel'

workbook = WriteExcel.new("comments0.xls")
worksheet = workbook.add_worksheet

worksheet.write(0, 0, 'Hello a1')
worksheet.write(0, 1, 'Hello b1')
worksheet.write(1, 0, 'Hello a2')
worksheet.write(1, 1, 'Hello b2')

worksheet.write_comment('A1', 'This is a comment a1', :author=>'arr')
worksheet.write_comment('A2', 'This is a comment a2', :author=>'arr')
worksheet.write_comment('B1', 'This is a comment b1', :author=>'arr')
worksheet.write_comment('B2', 'This is a comment b2', :author=>'arr')

workbook.close
```

As you can see I try to create one comment for each cell, but the resulting excel has only 2 comments on the last columns. (https://skitch.com/david.saitta/gkbbq/microsoft-excel)
It seems that the library consider only the last comment for row.

Thanks for your work!!!