examples/comments2.rb in writeexcel-0.3.5 vs examples/comments2.rb in writeexcel-0.4.0

- old
+ new

@@ -1,6 +1,7 @@ #!/usr/bin/ruby -w +# -*- coding: utf-8 -*- ############################################################################### # # This example demonstrates writing cell comments. # @@ -57,11 +58,11 @@ comment = [0x263a].pack("n") worksheet1.write('C6', cell_text, text_wrap) worksheet1.write_comment('C6', comment, :encoding => 1) -# UTF-8 string in perl 5.8. +# UTF-8 string. worksheet1.set_row(8, 50) cell_text = 'This is a UTF-8 string.' comment = '☺' # chr 0x263a in perl. worksheet1.write('C9', cell_text, text_wrap) @@ -304,10 +305,10 @@ worksheet7.write(cell, cell_text, text_wrap) worksheet7.write_comment(cell, comment, :author => author, :author_encoding => 1) -# UTF-8 string in perl 5.8. +# UTF-8 string. author = '☺' # smiley cell = 'C12' cell_text = "Move the mouse over this cell and you will see 'Cell commented " + "by #{author}' in the status bar at the bottom" comment = 'Hello.'