render readonly textareas without size as div with the content run through nl2br, former <pre> did NOT wrap lines

This commit is contained in:
Ralf Becker 2006-12-26 07:21:54 +00:00
parent f016c2570b
commit e06b0462c1

View File

@ -981,7 +981,7 @@
case 'textarea': // Multiline Text Input, size: [rows][,cols]
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
{