Method: IsoDoc::HtmlFunction::Html#underline_parse

Defined in:
lib/isodoc/html_function/html.rb

#underline_parse(node, out) ⇒ Object



87
88
89
90
91
92
93
# File 'lib/isodoc/html_function/html.rb', line 87

def underline_parse(node, out)
  style = node["style"] ? " #{node['style']}" : ""
  attr = { style: "text-decoration: underline#{style}" }
  out.span **attr do |e|
    node.children.each { |n| parse(n, e) }
  end
end