16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/isodoc/presentation_function/xrefs.rb', line 16
def prefix_container(container, linkend, node, target)
prefix_container?(container, node) or return linkend
container_container = @xrefs.anchor(container, :container, false)
container_label =
prefix_container(container_container,
anchor_xref(node, container, container: true),
node, target)
l10n(connectives_spans(@i18n.nested_xref
.sub("%1", "<span class='fmt-xref-container'>#{container_label}</span>")
.sub("%2", linkend)))
end
|