Updating merge field with line feeds results in squares in the word doc

If I update a word merge field with text that contains line feeds, the resulting document has squares where the new lines should be. Is there anyway around this short of replacing the line feeds (\n) with carriage returns (\r)?

This is a problem because if you take the text from a multi line text box in .NET the new lines are all represented as line feeds.

Thanks,

Adam

Hi
Thanks for your request. Maybe you should try using line break ā€œ\vā€.
ControlChar.LineBreakChar
Hope this helps.
Best regards.

This seems to work fine except for updating merge fields that are part of a numbered or bulletted list. Say you have a document with a list that looks like:

1: some text
2: some text
2.1 some more text
2.2 <>

in word updating <> with text that has line breaks in it causes the list to continue like this:

2.2 merge field replaced text
2.3 merge field replaced text after line break

with aspose it looks like

2.2 merge field replaced text
merge field replace text after line break

The list does not continue at 2.3 with aspose where the line break is. How can I get around this?

Thanks,

Adam

Hi
I answered this question here:
https://forum.aspose.com/t/97911
Best regards.