Chris, I'm not sure if you got an answer or not, but this works today. In fact
the snippet he shows below should do exactly what you asked for - notice the
line break is quoted so it is retained.
hth
charles
On Mar 15, 2012, at 1:16 PM, Chris Haste wrote:
> Thanks for the quick response David.
>
> So am I correct to read that it can’t be done at the moment? That all entries
> in the label definition will be concatenated into a single string?
>
> Thanks
>
> ChrisI
>
> From: David Winslow [mailto:dwins...@opengeo.org]
> Sent: 15 March 2012 17:09
> To: Chris Haste
> Cc: geoserver-users@lists.sourceforge.net
> Subject: Re: [Geoserver-users] css Question
>
> The CSS module never collapses whitespace inside of "quotes," even across
> linebreaks. Additionally, in the special case of labels any number of
> property values will be implicitly wrapped up in calls to the "concat"
> function, similar to the handling of multiple values in SLD.
>
> * {
> label: [STATE_NAME] "
> (" [STATE_ABBR] ")";
> }
>
> I'm open to feedback on prettier notation for linebreaks but this seems
> functional at least.
>
> --
> David Winslow
> OpenGeo - http://opengeo.org/
>
> On Thu, Mar 15, 2012 at 12:51 PM, Chris Haste <cha...@airdata.co.uk> wrote:
> Hello All,
>
> I’m trying to use the CSS styling Module and can’t figure out how to use the
> SLD <![CDATA[]]> construct from within the CSS to ensure that my label
> consists of two lines.
>
> How would the following SLD be represented in CSS?
>
> <Label>
>
> <ogc:PropertyName>STATE_NAME</ogc:PropertyName><![CDATA[]]>(<ogc:PropertyName>STATE_ABBR</ogc:PropertyName>)
> </Label>
>
> Thanks in advance,
>
> Chris
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users