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);