Method: IsoDoc::WordFunction::Body#body_attr
- Defined in:
- lib/isodoc/word_function/body.rb
#body_attr ⇒ Object
def anchor_names(docxml)
super
renumber_footnotes(docxml)
end
# undo merger of seen footnotes
def renumber_footnotes(docxml)
docxml.xpath(ns("//fn[not(ancestor::table or "\
"ancestor::figure)]")).each_with_index do |f, i|
f["reference"] = (i + 1).to_s
end
end
28 29 30 |
# File 'lib/isodoc/word_function/body.rb', line 28 def body_attr { lang: "EN-US", link: "blue", vlink: "#954F72" } end |