Method: IsoDoc::WordFunction::Comments#embed_comment_in_comment_list

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

#embed_comment_in_comment_list(docxml) ⇒ Object



69
70
71
72
73
74
75
76
# File 'lib/isodoc/word_function/comments.rb', line 69

def embed_comment_in_comment_list(docxml)
  #docxml.xpath(COMMENT_IN_COMMENT_LIST).each do |x|
  docxml.xpath(COMMENT_IN_COMMENT_LIST1).each do |x|
    n = x.next_element
    n&.children&.first&.add_previous_sibling(x.remove)
  end
  docxml
end