mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-30 03:43:40 +01:00
Displaying linebreaks for description tags
This commit is contained in:
parent
28aeb06238
commit
a9967f678d
@ -520,7 +520,18 @@ function et2_insertLinkText(_text, _node, _target)
|
|||||||
|
|
||||||
if (typeof s == "string" || typeof s == "number")
|
if (typeof s == "string" || typeof s == "number")
|
||||||
{
|
{
|
||||||
_node.appendChild(document.createTextNode(s));
|
// Include line breaks
|
||||||
|
var broken = s.split('\n');
|
||||||
|
|
||||||
|
for (var j = 0; j < broken.length; j++)
|
||||||
|
{
|
||||||
|
_node.appendChild(document.createTextNode(broken[j]));
|
||||||
|
|
||||||
|
if (j <= broken.length - 1)
|
||||||
|
{
|
||||||
|
_node.appendChild(document.createElement("br"));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user