lib/wovnrb/html_replacers/image_replacer.rb in wovnrb-0.2.10 vs lib/wovnrb/html_replacers/image_replacer.rb in wovnrb-0.2.11
- old
+ new
@@ -33,9 +33,10 @@
end
if node.get_attribute('alt')
alt = node.get_attribute('alt').strip
if @text_index[alt] && @text_index[alt][lang.lang_code] && @text_index[alt][lang.lang_code].size > 0
+ add_comment_node(node, alt)
node.attribute('alt').value = replace_text(alt, @text_index[alt][lang.lang_code][0]['data'])
end
end
end
end