We need to perform replacements in a Aspose.Word document (using your
Range class), where the replacement string contains newlines, which
need to be preserved. For instance:
String fromString = "some_token"; String toString = "this is a first paragraph.\n\nthis is a second paragraph."; document.getRange.replace(fromString, toString, true, false);
We then expect that the two line breaks are included, but they just seem to be omited.
It's known that paragraph breaks (
\r) and so on are not supported. But is
there any workaround for preserving these newlines? We really depend on this feature.
Thanks a lot for your help,