Method: IsoDoc::HtmlFunction::Comments#make_comment_text

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

#make_comment_text(node, fnote) ⇒ Object



44
45
46
47
48
49
50
51
52
# File 'lib/isodoc/html_function/comments.rb', line 44

def make_comment_text(node, fnote)
  noko do |xml|
    xml.div **{ style: "mso-element:comment", id: fnote } do |div|
      div.span **{ style: %{mso-comment-author:"#{node['reviewer']}"} }
      make_comment_target(div)
      node.children.each { |n| parse(n, div) }
    end
  end.join("\n")
end