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

MapGuide Open Source trac_mapguide at osgeo.org
Wed May 16 04:41:07 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):

 Untested possibilities:

 .net:
 value = JsonEscape(reader.GetString(propName)); //String content is
 arbitrary
 Regex rgx = new Regex("\\s+");
 value = rgx.Replace(value, " ");
 value.Trim();
 break;

 jsp:
 value = JsonEscape(reader.GetString(propName)); // string content is
 arbitrary
 value.ReplaceAll("\\s+", " ");
 value.trim();
 break;

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


More information about the mapguide-trac mailing list