Browse files

IE9 was adding in carriage returns in table text (ole_object#innerTex…

…t) when the table has embedded cells. I corrected this in the #strings method as I'm not sure of the implications changing this in the lower-level #text method
  • Loading branch information...
Hugh McGowan
Hugh McGowan committed Feb 1, 2012
1 parent 56bbd9a commit 2c3e3947c8e41c42553f491653d6cccd0e70e2f0
Showing with 1 addition and 1 deletion.
  1. +1 −1 watir/lib/watir/table.rb
@@ -14,7 +14,7 @@ def strings
@o.rows.each do |row|
cells_memo = []
row.cells.each do |cell|
- cells_memo <<, :ole_object, cell).text
+ cells_memo <<, :ole_object, cell).text.gsub("\r\n","")
rows_memo << cells_memo

0 comments on commit 2c3e394

Please sign in to comment.