Skip to content

Commit

Permalink
refactor: #630
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Jan 1, 2025
1 parent a01c830 commit 1f2bf52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/isodoc/presentation_function/concepts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def designation1(desgn)

def designation_annotate(desgn, name, orig)
designation_boldface(desgn)
designation_field(desgn, name)
designation_field(desgn, name, orig)
g = desgn.at(ns("./expression/grammar")) and
name << ", #{designation_grammar(g).join(', ')}"
designation_localization(desgn, name, orig)
Expand All @@ -186,7 +186,7 @@ def designation_boldface(desgn)
name.children = "<strong>#{name.children}</strong>"
end

def designation_field(desgn, name)
def designation_field(desgn, name, orig)
f = desgn.xpath(ns("./field-of-application | ./usage-info"))
&.map { |u| to_xml(u.children) }&.join(", ")
f&.empty? and return nil
Expand Down

0 comments on commit 1f2bf52

Please sign in to comment.