lib/isodoc/html_function/footnotes.rb in isodoc-1.0.20 vs lib/isodoc/html_function/footnotes.rb in isodoc-1.0.21
- old
+ new
@@ -60,10 +60,11 @@
@in_footnote = false
@seen_footnote << (tid + fn)
end
def footnote_parse(node, out)
- return table_footnote_parse(node, out) if @in_table || @in_figure
+ return table_footnote_parse(node, out) if (@in_table || @in_figure) &&
+ !node.ancestors.map {|m| m.name }.include?("name")
fn = node["reference"]
attrs = { "epub:type": "footnote", rel: "footnote", href: "#fn:#{fn}" }
out.a **attrs do |a|
a.sup { |sup| sup << fn }
end