GeoServer
  1. GeoServer
  2. GEOS-1661

Label mixed syntax loses newlines

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0-RC2
    • Fix Version/s: 1.7.3
    • Component/s: WMS
    • Labels:
      None
    • Number of attachments :
      0

      Description

      When parsing mixed syntax such as:

      <!-- 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>
      

      the newline entity ( ) 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.

        Issue Links

          Activity

            People

            • Assignee:
              Andrea Aime
              Reporter:
              Andrea Aime
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: