Skip to content

Commit

Permalink
remove redundant blank in termnote label template: #617
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Nov 25, 2024
1 parent 7d4c8d6 commit 1c499fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/isodoc/xref/xref_gen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ def amend_autonums(amend)
end

def termnote_label(node, label)
@labels["termnote"].gsub("%", semx(node, label.to_s))
if label.blank?
@labels["termnote"].gsub(/%\s?/, "")
else
@labels["termnote"].gsub("%", semx(node, label.to_s))
end
end

def increment_label(elems, node, counter, increment: true)
Expand Down

0 comments on commit 1c499fb

Please sign in to comment.