1c1,5 < # - encoding: utf-8 --- > #! /usr/bin/env ruby19 > # encoding: utf-8 > # EBPS::Conversion::Oebps::Factory -- ebps -- 23.09.2011 -- mhatakeyama@ywesee.com > # EBPS::Conversion::Oebps::Factory -- ebps -- 08.07.2010 -- hwyss@ywesee.com > 43c47 < @builder.instruct! :xml, :version=>"1.0", :encoding=>"UTF-8" --- > @builder.instruct! :xml, :version => "1.0", :encoding => "UTF-8" 96a101,115 > def format_picture(picture, xml) > xml.td do > name = picture.filename > path = File.join @tmpdir, name > picture.image.write path > @builder.p 'class' => 'ebps' do |xml| > xml.img 'src' => name, 'alt' => '' > end > end > end > def format_linked_paragraph(paragraph, xml) > xml.td do > xml.a 'href' => paragraph.url do format paragraph end > end > end 103c122,129 < xml.td do format cell end --- > #xml.td do format cell end > if cell.is_a? EBPS::Text::Picture > format_picture(cell, xml) > elsif cell.is_a? EBPS::Text::LinkedParagraph > format_linked_paragraph(cell, xml) > else > xml.td do format cell end > end