Skip to content

Commit

Permalink
Presentation XML refactor, footnotes: metanorma/isodoc#623
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Feb 26, 2025
1 parent 65b490f commit 93576c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/isodoc/itu/presentation_xml_convert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def table_fn1x(_table, fnote, _idx)

def fn_ref_label(fnote)
if fnote.ancestors("table, figure").empty? ||
!fnote.ancestors("fmt-name").empty?
!fnote.ancestors("name, fmt-name").empty?
super
else
"<sup>#{fn_label(fnote)}" \
Expand All @@ -110,7 +110,7 @@ def fn_ref_label(fnote)

def fn_body_label(fnote)
if fnote.ancestors("table, figure").empty? ||
!fnote.ancestors("fmt-name").empty?
!fnote.ancestors("name, fmt-name").empty?
super
else
"<sup>#{fn_label(fnote)}" \
Expand Down

0 comments on commit 93576c6

Please sign in to comment.