Method: IsoDoc::HtmlFunction::Comments#embed_comment_in_comment_list

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

#embed_comment_in_comment_list(docxml) ⇒ Object



64
65
66
67
68
69
70
# File 'lib/isodoc/html_function/comments.rb', line 64

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