Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-242

Default XDOM+XML XML serializer doesn't properly escape new lines

    XMLWordPrintable

Details

    • N/A
    • N/A

    Description

      Input:

      <document>
        <parameter0>
          <metadata class="linked-hash-map">
            <entry>
              <string>syntax</string>
              <org.xwiki.rendering.syntax.Syntax>
                <type>
                  <name>XWiki</name>
                  <id>xwiki</id>
                </type>
                <version>2.0</version>
              </org.xwiki.rendering.syntax.Syntax>
            </entry>
          </metadata>
        </parameter0>
        <verbatim parameter0="
      verbatim
      " parameter2=""></verbatim>
      </document>
      

      Is parsed (with the xdom+xml/current parser) and then rendered as (with the xdom+xml/current block renderer):

      <document><parameter0><metadata class="linked-hash-map"><entry><string>syntax</string><org.xwiki.rendering.syntax.Syntax><type><name>XWiki</name><id>xwiki</id></type><version>2.0</version></org.xwiki.rendering.syntax.Syntax></entry></metadata></parameter0><verbatim parameter0=" verbatim " parameter2=""></verbatim></document>
      

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: