Method: IsoDoc::Function::Cleanup#footnote_cleanup

Defined in:
lib/isodoc/function/cleanup.rb

#footnote_cleanup(docxml) ⇒ Object



81
82
83
84
85
86
# File 'lib/isodoc/function/cleanup.rb', line 81

def footnote_cleanup(docxml)
  docxml.xpath('//a[@epub:type = "footnote"]/sup').each_with_index do |x, i|
    x.content = (i + 1).to_s
  end
  docxml
end