Please provide us your sample code as well as your image. It seems, you have forgotten to attach the image. Once, you will provide the sample code, we will look into this issue at our end and help you asap.
//In linux and Mac OS, an extra break line comes up at the beginning and end of the rich text, the following lines remove them
if(cellStr.startsWith(ImportExportUtils.XML_NAMESPACE + "\n")) {
cellStr = cellStr.replaceAll(ImportExportUtils.XML_NAMESPACE + "\n", ImportExportUtils.XML_NAMESPACE); //$NON-NLS-1$
}
if(cellStr.endsWith("\n</div>")) { //$NON-NLS-1$
cellStr = cellStr.replaceAll("\n</div>", "</div>"); //$NON-NLS-1$ //$NON-NLS-2$
}
cell.setHtmlString(cellStr);
Basically we are parsing a document and put it into a cell via setHtmlString.
I can see that we have some styles with NaNpt, not sure if that might affect, see image.
Please see the following sample code, its output Excel file, comments and screenshot for a reference. It should help you fix your issue. Let us know your feedback.
It is good to know that your issue is resolved now. Let us know if you encounter any other issue, we will be glad to look into it and help you further.