lib/isodoc/function/inline.rb in isodoc-1.5.0 vs lib/isodoc/function/inline.rb in isodoc-1.5.1

- old
+ new

@@ -37,10 +37,10 @@ href = "#" + node["bibitemid"] url = node.at(ns("//bibitem[@id = '#{node['bibitemid']}']/"\ "uri[@type = 'citation']")) return href unless url href = suffix_url(url.text) - anchor = node&.at(ns(".//locality[@type = 'anchor']"))&.text + anchor = node&.at(ns(".//locality[@type = 'anchor']"))&.text&.strip anchor and href += "##{anchor}" href end def eref_parse(node, out)