[Geoserver-devel] [jira] Created: (GEOS-1661) Label mixed syntax loses newlines

Label mixed syntax loses newlines
---------------------------------

                 Key: GEOS-1661
                 URL: http://jira.codehaus.org/browse/GEOS-1661
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 1.6.0-RC2
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 1.6.1, 1.7.0-beta1

When parsing mixed syntax such as:

{code:xml}
<!-- a text symbolizer for tasmania states -->
<TextSymbolizer>
  <Label><ogc:PropertyName>STATE</ogc:PropertyName> &#10; <ogc:PropertyName>COUNTRY</ogc:PropertyName></Label>
  <Font>
    <CssParameter name="font-family">Arial</CssParameter>
    <CssParameter name="font-style">Normal</CssParameter>
    <CssParameter name="font-size">12</CssParameter>
  </Font>
  <Fill>
    <CssParameter name="fill">#000000</CssParameter>
  </Fill>
</TextSymbolizer>
{code}

the newline entity (&#10:wink: is discarded by ExpressionDomParser.parse(Literar element). We need a way to tell the expression dom parser not to trim the literals in that case.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira