Padding got removed after migrating from Aspose.Words 11.8 to 23.1

Hi Team,
Padding got removed after migrating from Aspose.Words 11.8 to 23.1

I have attached two images here.

One document is created with Aspose 11.8(img:Aspose11.8- PaddingExist .png) and the other one is with 23.1(img:Aspose 23.1-PaddingRemoved)

Padding exists before the numeric value in the document which is created by version 11.8. But the padding got removed when migrated to 23.1. Tried the same with 17.8 as well. There also the padding is getting removed.
As per our requirement, the padding should be there, It should not be removed.
Could you please check on this issue.

@Febinbabu Could you please attach your template and both correct and incorrect output documents here for our reference? We will check the issue and provide you more information.
Unfortunately, it is impossible to analyze the issue using screenshots without actual documents and code.

Hi alexey,
We are unable to share our code owing to our organization policies.

We observed that this issue happening on Aspose.words 14.7 onwards, It’s working fine till version 14.6.

In the 14.7 release note i have noticed that there is a Bug Fix-“WORDSNET-10353- Trim leading/trailing spaces from merge field values during mail merge”. We suspect this might be the reason behind padding removal.

In our case, padding should not be removed. Do we have any solution for this?

@Febinbabu You can configure trimming of trailing and leading whitespaces in the merge fields values using MailMerge.TrimWhitespaces property.