Multiline cell in dhtmlx

In DHTMLX grid we want to show US address format in one of the cell breaking into multiline e.g.



123 Main St

Apt# 5

Landsdale, PA 12345



However when I use the grid enable multiline the format is not retained. It appears something like this



123 Main St

Apt# 5 Landsdale,

PA 12345



Can you please let me know how can I break text across lines in a grid while maintaing the format?

The grid use auto-size behavior, so it move text on next line only if it can’t be placed on current line.
If you want to provide preformatted structure you can use

<![CDATA[
123 Main St

Apt# 5

Landsdale, PA 12345

]]>