mwelham / office_docs

Ruby gem for manipulating Microsoft Office Open XML files
4 stars 4 forks source link

'replace_with_body_fragments' method has bug ? #3

Closed creeek closed 10 years ago

creeek commented 10 years ago

lib/office/word.rb L579~590 #replace_with_body_fragments

@paragraph.node.next_sibling.xpath(".//w:p").each do |p_node|
  p = Paragraph.new(node, @paragraph.document)
  @paragraph.document.paragraph_inserted_after(@paragraph, p)
end

p = Paragraph.new(node, @paragraph.document) ==> p = Paragraph.new(p_node, @paragraph.document)

mwelham commented 10 years ago

Thanks for spotting that.

It's been fixed.