From e06b0462c1034f7af0bc47ca7af982014eb4af2b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 26 Dec 2006 07:21:54 +0000 Subject: [PATCH] render readonly textareas without size as div with the content run through nl2br, former
 did NOT wrap lines

---
 etemplate/inc/class.uietemplate.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php
index 574ef5282a..39adda9bae 100644
--- a/etemplate/inc/class.uietemplate.inc.php
+++ b/etemplate/inc/class.uietemplate.inc.php
@@ -981,7 +981,7 @@
 				case 'textarea':	// Multiline Text Input, size: [rows][,cols]
 					if ($readonly && !$cell_options)
 					{
-						$html .= '
'.$this->html->htmlspecialchars($value)."
\n"; + $html .= '
'.nl2br($this->html->htmlspecialchars($value))."
\n"; } else {