Method: IsoDoc::Function::Blocks#recommendation_name

Defined in:
lib/isodoc/function/reqt.rb

#recommendation_name(node, out, type) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/isodoc/function/reqt.rb', line 8

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
      title and title.children.each { |n| parse(n,b) }
    end
  end
end