forked from extern/egroupware
render readonly textareas without size as div with the content run through nl2br, former <pre> did NOT wrap lines
This commit is contained in:
parent
f016c2570b
commit
e06b0462c1
@ -981,7 +981,7 @@
|
|||||||
case 'textarea': // Multiline Text Input, size: [rows][,cols]
|
case 'textarea': // Multiline Text Input, size: [rows][,cols]
|
||||||
if ($readonly && !$cell_options)
|
if ($readonly && !$cell_options)
|
||||||
{
|
{
|
||||||
$html .= '<pre style="margin-top: 0px;">'.$this->html->htmlspecialchars($value)."</pre>\n";
|
$html .= '<div>'.nl2br($this->html->htmlspecialchars($value))."</div>\n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user