[mapguide-users] Newline characters not recognised in DWF viewer.

Walt Welton-Lair walt.welton-lair at autodesk.com
Fri Dec 1 05:40:42 EST 2006


What version of MapGuide are you running?  Are you building it yourself?
We just added multi-line label support to the AJAX viewer a few weeks
ago, and it will be in the next release.
 
Unless you're building MG yourself there's currently no way to make it
work with both viewers.  With the next release though any of the
following will be interpreted as a line-break:
 
"\n"  (char 92 + char 110)
\n\r  (char 13 + char 10)
\r\n  (char 10 + char 13)
\n    (char 13)
\r    (char 10)

So pick your favorite and just use that for now.
 
Walt

  _____  

From: Jackie Ng [mailto:jackie.ng at aecsystems.com.au] 
Sent: Friday, December 01, 2006 5:20 AM
To: users at mapguide.osgeo.org
Subject: Re: [mapguide-users] Newline characters not recognised in DWF
viewer.


I've just tried this and yes it now works for the DWF viewer. But now,
the situation has reversed. The AJAX viewer now treats it as the string
"\n" instead of the control character.
 
Is there a solution that can work with both viewers?
 
Regards,

Jackie Ng

AEC Spatial Pty Ltd. / AEC Systems Pty Ltd.
SYDNEY - MELBOURNE - BRISBANE - PERTH - ADELAIDE - HOBART 

A.B.N: 32 075 809 451

Level 4, 37-41 Prospect St. Box Hill, Victoria, 3128

Phone: 1300 368 609 
Fax:    1300 362 140 

www.aecsystems.com.au 
jackie.ng at aecsystems.com.au

 

Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C714F0.434ACB9A"
Date: Thu, 30 Nov 2006 21:27:35 -0500
From: Walt Welton-Lair <walt.welton-lair at autodesk.com>
Subject: [mapguide-users] Newline characters not recognised in DWF
viewer.

Use "\n" (2 characters) in your label string, not '\n' (the control
character).

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20061201/62b759c8/attachment.html


More information about the Mapguide-users mailing list