Commit 8f1665e0 authored by Michael Witrant's avatar Michael Witrant

find text

parent 3c2b4bec
...@@ -23,3 +23,9 @@ doc = Nokogiri::XML::Document.parse(xml) ...@@ -23,3 +23,9 @@ doc = Nokogiri::XML::Document.parse(xml)
if xml_dump_path if xml_dump_path
File.open(xml_dump_path, "w") { |f| f.write doc.to_xml(indent: 2) } File.open(xml_dump_path, "w") { |f| f.write doc.to_xml(indent: 2) }
end end
text = doc.xpath('//office:text').first
raise "no office:text found" unless text
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment