[mapguide-trac] #1780: Problem with line breaks in property fields

MapGuide Open Source trac_mapguide at osgeo.org
Thu May 10 02:01:25 EDT 2012


#1780: Problem with line breaks in property fields
---------------------------+------------------------------------------------
   Reporter:  janvw        |       Owner:       
       Type:  defect       |      Status:  new  
   Priority:  medium       |   Milestone:  2.3  
  Component:  AJAX Viewer  |     Version:  2.2.0
   Severity:  major        |    Keywords:       
External_id:               |  
---------------------------+------------------------------------------------

Comment(by janvw):

 I solved the problem by inserting a new line after line 393 in
 getselectedfeatures.php:

 393  $val = JsonEscape($fr->GetString($propName)); //String content is
 arbitrary
 394  $val = trim(preg_replace('/\s+/',' ',$val));  //new
 395  break;

 Properties containing line breaks are now correctly displayed in the
 properties pane.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1780#comment:3>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list