lib/caracal/document.rb in caracal-0.1.5 vs lib/caracal/document.rb in caracal-0.1.6

- old
+ new

@@ -194,10 +194,12 @@ end def render_media(zip) images = relationships.select { |r| r.relationship_type == :image } images.each do |rel| - unless content = rel.relationship_data + if rel.relationship_data + content = rel.relationship_data + else content = open(rel.relationship_target).read end zip.put_next_entry("word/#{ rel.formatted_target }") zip.write(content) \ No newline at end of file