Before “Hello Sing” was 2 spaces, after “Customer” wa" 1 space, after compare before “Hello Sing” only 1 space. Between “Hello Sing” double space deleted to.
Please note that Aspose.Words mimics the same behavior as MS Word does. If you load your html document in MS Word, you notice only once space. If you open the input html in browser, you will see only once space.
Hi Mike,
Thanks for your inquiry. In your case, we suggest you please replace non breaking space with simple space before saving the final document. Hope this helps you.
Document r = builder1.getDocument();
r.getRange().replace(ControlChar.NON_BREAKING_SPACE, " ", new FindReplaceOptions());
r.save(MyDir + "6.docx", SaveFormat.DOCX);
r.save(MyDir + "6.html", SaveFormat.HTML);
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.