Dojo rich text editor

We have an Xpages app that uses the 8.5.1 rich text editor. Documents are created in the browser and then an agent creates a mail message from the content and sends it. The rich text field must contain colored text and some bold formating. Lines of text must be separated by at least one line.

When saved and viewed in a browser, all is fine. However, when the message arrives in the Notes client, the line spacing is lost. Upon viewing the html source, I discovered that the code contained a &nbso between a set of

tags for each empty line. If I open the document up in the browser in edit mode, sure enough, there is a space there.

Here’s the source from the browser:

 
This is line one.

This is line 2 with 3 lines below.
 
 
Line 3
 
 
Line 4
 
 

I can return to the document and since I know know the space is there, I can delete it. The source then replaces the

&nbsp
with

. This works when the message is displayed in the Notes client.

Does anyone know how to prevent this or any advice for a fix?

Thanks.