After upgrading from Aspose.Words 15.7 to 17.8 we noticed a change of behaviour after executing UpdateFields() method on a modified document. An additional, unwanted, paragraph is added which results in an unwanted new line. We’ve also tested with the newest version of Aspose.Words - 18.10.
Here is a part of the document generated with version 15.7:
img15_7.PNG (1.2 KB)
And here is the same document generated with version 18.10 (“Date” is moved to a new line):
img18_10.PNG (1.8 KB).
Here you can see the difference in document.xml between source document and version 18.10:
diff_source_18.10.PNG (75.7 KB)
And here you can see the difference in document.xml between 15.7 and 18.10:
diff_15_7_18_10.PNG (73.8 KB)
Here are all 3 documents: source, generated with 15.7 and generated with 18.10 and LinqPad scripts that can be used to reproduce the issue.
files.zip (53.2 KB)
The source document is saved after performing modification on the document but before runnig UpdateFields() method, so it is in a broken state - cannot be opened in Word.
Can this issue be fixed, as this is a problem for our customers?