Method: IsoDoc::WordFunction::Postprocess#word_tab_clean

Defined in:
lib/isodoc/word_function/postprocess.rb

#word_tab_clean(docxml) ⇒ Object



99
100
101
102
103
104
105
# File 'lib/isodoc/word_function/postprocess.rb', line 99

def word_tab_clean(docxml)
  docxml.xpath("//p[@class='Biblio']//span[@style='mso-tab-count:1']")
    .each do |s|
    s.next.text? or next
    s.next.replace(@c.encode(s.next.text.sub(/^\s+/, ""), :hexadecimal))
  end
end