We have a Word Document that will have some merge fields like this;
Some text <<html_field>>
then some more text.
Note the field is in the middle of a sentence and also sometimes there is a space before and after the <<html_field>>
and sometimes there is not. Also, we are using the IFieldMergingCallback.FieldMerging
logic that is seen in many examples.
When we use InsertHTML to add some text which might be like;
builder.InsertHTML(" that <b>is bold</b> ")
What we get is
Some text that is bold <— Paragraph mark is inserted that we don’t want
then some more text.
Instead of
Some text that is bold then some more text.
There are many examples that remove the paragraph mark but I cannot get any to work where there is text hard up against the end of the <<html_field>>
code.
Thanks