[Mapserver-users] RE: maxcount of characters in a line

Puneet Kishor pkishor at geoanalytics.com
Sun Jan 5 23:12:23 EST 2003


>
>
> Today's Topics:
>
>    ..
>    2. maxcount of characters in a line (Katarina Kobesova)
>
> --__--__--
>
> Message: 2
> From: "Katarina Kobesova" <katarina.kobesova at chello.at>
> To: <mapserver-users at lists.gis.umn.edu>
> Date: Sun, 5 Jan 2003 16:47:17 +0100
> Subject: [Mapserver-users] maxcount of characters in a line
>
> ..
>
> Hello together !
>
> I have a simple question:
> how I can force a line break in a label ?
> (comparable <br>in HTML).=20

well, you could chunk split.

$newlabel = chunk_split($label, 20);

would that help? basically a "\r\n" would be inserted every 20 chars. 
You could replace the default "\r\n" with just "\n" if you so desire.


>
> Some code:
> ..




More information about the mapserver-users mailing list