From 29b138743d3db1c2ebefe6be7fdb27b325be9ea8 Mon Sep 17 00:00:00 2001
From: Cyril Vazquez <cyril.vazquez@maarch.org>
Date: Tue, 11 Dec 2012 08:06:10 +0000
Subject: [PATCH]

---
 core/trunk/core/tests/class/ViewController.php | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/core/trunk/core/tests/class/ViewController.php b/core/trunk/core/tests/class/ViewController.php
index 7d99d345e11..0a5248ea388 100644
--- a/core/trunk/core/tests/class/ViewController.php
+++ b/core/trunk/core/tests/class/ViewController.php
@@ -333,7 +333,7 @@ class ViewController
                 $nodeName = $node->name;
                 break;
             }
-            $nodeValue = (string)$node->nodeValue;
+            $nodeValue = $node->nodeValue;
             // Name of property
             $viewElement = 
                 $this->getElementById(
@@ -359,10 +359,7 @@ class ViewController
     function loadProperty(
         $viewElement,
         $value
-    ) {
-        // Replace CR/LF by <br/>
-        $value = preg_replace("/(\r\n|\n|&#xD;)/", '<br/>', $value);
-        
+    ) {       
         switch($viewElement->tagName) {
         case 'input':
             switch($viewElement->getAttribute('type')) {
-- 
GitLab