Skip to content

Commit

Permalink
refactor: #630
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Jan 3, 2025
1 parent c1515e1 commit a2ff3be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/isodoc/presentation_function/autonum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ def autonum(id, num)
"<semx element='autonum' source='#{id}'>#{num}</semx>"
end

def semx_orig(node)
node.parent.parent.at(".//*[@id = '#{node['source']}']")
def semx_orig(node, orig = nil)
orig ||= node.parent.parent
orig.at(".//*[@id = '#{node['source']}']")
end

def labelled_autonum(label, id, num)
Expand Down

0 comments on commit a2ff3be

Please sign in to comment.