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

Special symbol on its own line within list item is not rendered correctly from XDOM to xwiki/2.1

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce

      • Parse the text below as xwiki/2.1:
        * Item
        ~= Test
        
      <document>
          <p>
              <metadata>
                  <metadata>
                      <entry>
                          <string>syntax</string>
                          <org.xwiki.rendering.syntax.Syntax>
                              <type>
                                  <name>XWiki</name>
                                  <id>xwiki</id>
                                  <variants class="empty-list"></variants>
                              </type>
                              <version>2.1</version>
                          </org.xwiki.rendering.syntax.Syntax>
                      </entry>
                  </metadata>
              </metadata>
          </p>
          <list>
              <listItem>
                  <word>Item</word>
                  <newLine></newLine>
                  <specialSymbol>=</specialSymbol>
                  <space></space>
                  <word>Test</word>
              </listItem>
          </list>
      </document>
      
      • Render this XDOM to xwiki/2.1.

      Actual result

      The rendering produces the following output, where the equal sign is not escaped anymore:

      * Item
      = Test
      

      Expected result

      The following would be expected:

      * Item
      ~= Test
      

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            slauriere slauriere
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: