Skip to content

Commit 823b119

Browse files
committed
defensive programming, term sources
1 parent 45e4183 commit 823b119

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/isodoc/iho/presentation_xml_convert.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def termsource1(elem)
133133
while elem&.next_element&.name == "termsource"
134134
elem << "; #{to_xml(elem.next_element.remove.children)}"
135135
end
136-
t = elem.at("./ancestor::xmlns:term")
136+
t = elem.at("./ancestor::xmlns:term") or return
137137
s = l10n(" [#{to_xml(elem.remove.children).strip}]")
138138
defn = t.at(ns(".//definition[last()]")) or return
139139
defn.elements.last << s

lib/metanorma/iho/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Metanorma
22
module Iho
3-
VERSION = "1.0.7".freeze
3+
VERSION = "1.0.8".freeze
44
end
55
end

0 commit comments

Comments
 (0)