Method: IsoDoc::HtmlFunction::Html#footnote_backlinks1

Defined in:
lib/isodoc/html_function/postprocess_footnotes.rb

#footnote_backlinks1(xref, footnote) ⇒ Object



27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/isodoc/html_function/postprocess_footnotes.rb', line 27

def footnote_backlinks1(xref, footnote)
  xdup = xref.dup
  xdup.remove["id"]
  if footnote.elements.empty?
    #footnote.children.empty? and footnote << " "
    #footnote.children.first.previous = xdup
    footnote.add_first_child xdup
  else
    #footnote.elements.first.children.first.previous = xdup
    footnote.elements.first.add_first_child xdup
  end
end