tenderlove/nokogiri — pull request #697 by jvshahid (2012-06-11 11:42:04+00:00)
Title: Fixes issue #691.

Merging text nodes when adding a new node has the following two special cases:

1. Try to merge with the previous node if this is one of the following: add_child, add_next_sibling or replace
2. Try to merge with the next node if this is one of the following: add_previous_sibling or replace