lib/isodoc/presentation_function/block.rb in isodoc-2.1.0.2 vs lib/isodoc/presentation_function/block.rb in isodoc-2.1.1
- old
+ new
@@ -29,11 +29,11 @@
def sourcecode1(elem)
return if labelled_ancestor(elem)
lbl = @xrefs.anchor(elem["id"], :label, false) or return
- prefix_name(elem, " — ",
+ prefix_name(elem, " — ",
l10n("#{lower2cap @i18n.figure} #{lbl}"), "name")
end
def formula(docxml)
docxml.xpath(ns("//formula")).each do |f|
@@ -58,11 +58,11 @@
lbl = if n.nil? || n[:label].nil? || n[:label].empty?
@i18n.example
else
l10n("#{@i18n.example} #{n[:label]}")
end
- prefix_name(elem, " — ", lbl, "name")
+ prefix_name(elem, " — ", lbl, "name")
end
def note(docxml)
docxml.xpath(ns("//note")).each do |f|
note1(f)
@@ -128,10 +128,10 @@
def table1(elem)
return if labelled_ancestor(elem)
return if elem["unnumbered"] && !elem.at(ns("./name"))
n = @xrefs.anchor(elem["id"], :label, false)
- prefix_name(elem, " — ", l10n("#{lower2cap @i18n.table} #{n}"),
+ prefix_name(elem, " — ", l10n("#{lower2cap @i18n.table} #{n}"),
"name")
end
# we use this to eliminate the semantic amend blocks from rendering
def amend(docxml)