Mailmerged Doc cuts off text in table

For some reason, when I merge large blocks of text into a table, words at the end of the line get cut off in the middle, rather than wrapping correctly.

Attached is the final document, the template document, and the code used to merge them using aspose.words

Hi

Thanks for your request. The problem is in your template. If you take a look at second cell of second row of the table in template, you will see that paragraph has negative right indent (see the attached screenshot). This forces text to go outside the cell. You can easily fix the problem by setting right indent to zero.
Best regards,

Thanks so much, fixing that worked perfectly!