Using a custom IFieldMergingCallback class, I’m merging HTML into a word document. This all works pretty much as expected. However, I’ve run into one scenario that I’m not sure how to implement. If my word document contains the following line:
Section Title: {{fieldname}}
The mailmerge procedure correctly inserts the html into the document. However, if the HTML starts off with a paragraph (e.g.
field html contents here
), then the inserted HTML appears on the next line as shown here:
Section Title:
field html contents here
During the mailmerge process, is there a way to determine if the html resulted in a new paragraph and if so, merge the new paragraph with the previous paragraph?
Thanks in advance.