diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index 42377634ff942..543516075206c 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -1074,7 +1074,8 @@ function(data) { { var editor = CKEDITOR.instances['dp_desc']; if (editor) { - editor.setData(description); + var formattedDescription = description.replace(/\n/g, '
'); + editor.setData(formattedDescription); } }