Method: IsoDoc::Function::Cleanup#inline_header_cleanup
- Defined in:
- lib/isodoc/function/cleanup.rb
#inline_header_cleanup(docxml) ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/isodoc/function/cleanup.rb', line 68 def inline_header_cleanup(docxml) docxml.xpath('//span[@class="zzMoveToFollowing"]').each do |x| x.delete("class") n = x.next_element if n.nil? x.name = "p" else n.children.first.previous = x.remove end end docxml end |