We have a SAPUI5 timeline control, where we are showing the comments coming from server.
The issue is, if the comments contain a newline \n
, then the Timeline control is not able to display the text in newline. Instead, it introduces space wherever \n
is present.
We have tried formatting \n
to unicode character also but that also didn't worked. Timeline control aggregates TimelineItem.
The control we are using is: https://ui5.sap.com/#/api/sap.suite.ui.commons.TimelineItem
Code snippet can be found at: https://jsbin.com/kuluyehilu/edit?html,output