Method: IsoDoc::WordFunction::Comments#wrap_comment_cont

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

#wrap_comment_cont(from, target) ⇒ Object



91
92
93
94
95
96
97
98
99
100
# File 'lib/isodoc/word_function/comments.rb', line 91

def wrap_comment_cont(from, target)
  if %w(ol ul li div p).include?(from.name)
    from.children.each do |c|
      wrap_comment_cont(c, target)
    end
  else
    s = from.replace("<span style='mso-comment-continuation:#{target}'>")
    s.first.children = from
  end
end