How to preserve a newline (CR) in detailed view?

Hello,

where and what do i need to change, to preserve a newline in default user view?

In edit mode everything works fine:

In templates i add this code:

scheduler.templates.event_text=function(start,end,event){ var myDesc = event.details; return "<b>"+event.text+"</b> " + myDesc.replace(/(\r\n|[\r\n])/g, " "); }
and it look like this:

If the user clicks on the entry, but it looks like this

Where can I change this?

Axel

dhtmlxscheduler_readonly.js

locate
txt_replace(“textarea”,d,n,function(a){ return a.value; });

and replace with

txt_replace(“textarea”,d,n,function(a){ return a.value.replace(/(\r\n|[\r\n])/g, "
"); });