Merge document blocks