rabin 2 years ago
parent
commit
48aefc1e41
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/Data.php

+ 2 - 2
lib/Data.php

@@ -185,8 +185,8 @@ class Data
                         }
                         }
                     }
                     }
                 }
                 }
-                if (strstr($v, "\r")) {
-                    $v = str_replace("\r", '<br />', $v);
+                if (strstr($v, "\n")) {
+                    $v = str_replace("\n", '<br />', $v);
                 }
                 }
 
 
                 if ($state == 1) {
                 if ($state == 1) {