Method: IsoDoc::Function::Cleanup#inline_header_cleanup
- Defined in:
- lib/isodoc/function/cleanup.rb
#inline_header_cleanup(docxml) ⇒ Object
85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/isodoc/function/cleanup.rb', line 85 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 n.add_first_child(x.remove) end end docxml end |