From a04c5e79b49256e9d4c23a6aaa9286bf5c60c03b Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Thu, 1 May 2014 14:09:20 -0500
Subject: [PATCH] forms: Display breaks in non-html textarea fields

---
 include/class.forms.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.forms.php b/include/class.forms.php
index 2bbb04a66..10322eae1 100644
--- a/include/class.forms.php
+++ b/include/class.forms.php
@@ -586,7 +586,7 @@ class TextareaField extends FormField {
         if ($config['html'])
             return Format::safe_html($value);
         else
-            return Format::htmlchars($value);
+            return nl2br(Format::htmlchars($value));
     }
 }
 
-- 
GitLab