summaryrefslogtreecommitdiffstats
path: root/lib/roo/excelx/comments.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/roo/excelx/comments.rb')
-rw-r--r--lib/roo/excelx/comments.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/roo/excelx/comments.rb b/lib/roo/excelx/comments.rb
index 65044a9..c37097a 100644
--- a/lib/roo/excelx/comments.rb
+++ b/lib/roo/excelx/comments.rb
@@ -13,7 +13,7 @@ module Roo
return {} unless doc_exists?
doc.xpath('//comments/commentList/comment').each_with_object({}) do |comment, hash|
- value = (comment.at_xpath('./text/r/t') || comment.at_xpath('./text/t')).text
+ value = comment.xpath('./text/r/t', './text/t').text
hash[::Roo::Utils.ref_to_key(comment['ref'].to_s)] = value
end
end