Method: IsoDoc::WordFunction::Comments#make_comment_text

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

#make_comment_text(node, fn) ⇒ Object



49
50
51
52
53
54
55
56
57
# File 'lib/isodoc/word_function/comments.rb', line 49

def make_comment_text(node, fn)
  noko do |xml|
    xml.div **{ style: "mso-element:comment", id: fn } 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