Skip to content

Commit

Permalink
issue warning if anchor not found, and do not crash; metanorma/isodoc…
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed May 30, 2019
1 parent dd96ccf commit a6b9594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/isodoc/csand/base_convert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def metadata_init(lang, script, labels)

def annex_name(annex, name, div)
div.h1 **{ class: "Annex" } do |t|
t << "#{get_anchors[annex['id']][:label]} "
t << "#{anchor(annex['id'], :label)} "
t.br
t.b do |b|
name&.children&.each { |c2| parse(c2, b) }
Expand Down Expand Up @@ -46,4 +46,4 @@ def term_cleanup(docxml)
end
end
end
end
end

0 comments on commit a6b9594

Please sign in to comment.