X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fgeocoding.inc.php;h=2e99434b5b5c3a84a61ff47be2cba25e3e20988b;hb=671b7073a0debbd347e7276f44fa04c961693f4c;hp=cb2763598bc8fc7f0bbdd576d471bc32fc0abe58;hpb=00e5200bb0fdf2986ab42f3b8a6b36bc330a00f3;p=platal.git diff --git a/include/geocoding.inc.php b/include/geocoding.inc.php index cb27635..2e99434 100644 --- a/include/geocoding.inc.php +++ b/include/geocoding.inc.php @@ -337,7 +337,12 @@ class GMapsGeocoder extends Geocoder { $address['text'] = $address['geoloc']; $address['postalText'] = $address['geocodedPostalText']; unset($address['geoloc'], $address['geocodedPostalText']); + } else { + $address['geoloc'] = str_replace("\n", "\r\n", $address['geoloc']); + $address['geocodedPostalText'] = str_replace("\n", "\r\n", $address['geocodedPostalText']); } + $address['text'] = str_replace("\n", "\r\n", $address['text']); + $address['postalText'] = str_replace("\n", "\r\n", $address['postalText']); } // Returns the address formated for postal use.