lib/isodoc/presentation_function/xrefs.rb in isodoc-2.5.10 vs lib/isodoc/presentation_function/xrefs.rb in isodoc-2.6.0

- old
+ new

@@ -1,10 +1,10 @@ module IsoDoc class PresentationXMLConvert < ::IsoDoc::Convert def prefix_container(container, linkend, node, _target) - l10n(@i18n.nested_xref.sub(/%1/, anchor_xref(node, container)) - .sub(/%2/, linkend)) + l10n(@i18n.nested_xref.sub("%1", anchor_xref(node, container)) + .sub("%2", linkend)) end def anchor_value(id) @xrefs.anchor(id, :bare_xref) || @xrefs.anchor(id, :value) || @xrefs.anchor(id, :label) || @xrefs.anchor(id, :xref) @@ -131,11 +131,11 @@ ret end end def i18n_chain_boolean(value, entry) - @i18n.send("chain_#{entry[:conn]}").sub(/%1/, value) - .sub(/%2/, loc2xref(entry)) + @i18n.send("chain_#{entry[:conn]}").sub("%1", value) + .sub("%2", loc2xref(entry)) end def can_conflate_xref_rendering?(locs) @i18n.get["no_conflate_xref_locations"] == true and return false (locs.all? { |l| l[:container].nil? } ||