[Mapbender-commits] r4784 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Oct 19 08:42:07 EDT 2009


Author: christoph
Date: 2009-10-19 08:42:07 -0400 (Mon, 19 Oct 2009)
New Revision: 4784

Modified:
   trunk/mapbender/http/classes/class_gml_factory.php
Log:
http://trac.osgeo.org/mapbender/ticket/545

Modified: trunk/mapbender/http/classes/class_gml_factory.php
===================================================================
--- trunk/mapbender/http/classes/class_gml_factory.php	2009-10-19 12:39:10 UTC (rev 4783)
+++ trunk/mapbender/http/classes/class_gml_factory.php	2009-10-19 12:42:07 UTC (rev 4784)
@@ -30,7 +30,10 @@
 abstract class GmlFactory {
 
 	public function removeWhiteSpace ($string) {
-		return preg_replace("/\>(\s)+\</", "><", trim($string));
+		$str = preg_replace("/\>(\s)+\</", "><", trim($string));
+		$str = preg_replace("/\\n/", "\\n", $str);
+		return $str;
+		
 	}
 	
 	/**



More information about the Mapbender_commits mailing list