lib/isodoc/function/reqt.rb in isodoc-1.0.10 vs lib/isodoc/function/reqt.rb in isodoc-1.0.11
- old
+ new
@@ -5,13 +5,10 @@
anchor(node['id'], :label, false)]
end
def recommendation_name(node, out, type)
label, title, lbl = recommendation_labels(node)
- #label = node.at(ns("./label"))
- #title = node.at(ns("./title"))
out.p **{ class: "AdmonitionTitle" } do |b|
- #lbl = anchor(node['id'], :label, false)
b << (lbl.nil? ? l10n("#{type}:") : l10n("#{type} #{lbl}:"))
if label || title
b.br
label and label.children.each { |n| parse(n,b) }
b << "#{clausedelim} " if label && title