Free Support Forum -

Label list character replaced after comparsion

I use Compare method in C#. After:

var doc = Compare(doc1, doc2);

My list label char ‘-’ has been replaced by a number list label 4.1.2



Thanks for your inquiry. Please ZIP and attach your input Word documents here for testing. We will investigate the issue on our side and provide you more information.

  1. 01.docx has a ‘-’ list;
  2. Compare(01, 02);
  3. 02.docx has corrupted list (the last item). (52.1 KB)
Thanks, Tahir!


Thanks for sharing the documents. We have tested the scenario using latest version of Aspose.Words for .NET 18.5 with following code example and have not found the shared issue. Please use Aspose.Words for .NET 18.5. We have attached the output DOCX with this post for your kind reference. (23.2 KB)

Document doc1 = new Document(MyDir + "01.docx");
Document doc2 = new Document(MyDir + "02.docx");


doc1.Compare(doc2, "aspose", DateTime.Now); 
doc1.Save(MyDir + "18.5.docx");