Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3716

Parameters for groups are not supported when defined on a separate line

    XMLWordPrintable

Details

    • Unit
    • Unknown

    Description

      Consider the following test case (passing):

      Test-1 (passing)

      .#-----------------------------------------------------
      .input|xhtml/1.0
      .#-----------------------------------------------------
      <div style="float: left; width: 2.42in; height: 2.42in; border: 1px solid #000000; padding: 0.05in 0.1in; background: #ffffff"><p>The first paragraph</p><p>The second paragraph</p></div>
      .#-----------------------------------------------------
      .expect|xwiki/2.0
      .#-----------------------------------------------------
      (% style="float: left; width: 2.42in; height: 2.42in; border: 1px solid #000000; padding: 0.05in 0.1in; background: #ffffff" %)
      (((The first paragraph

      The second paragraph)))

      But the reverse transformation fails:

      Test-2 (failing)

      .#-----------------------------------------------------
      .input|xwiki/2.0
      .#-----------------------------------------------------
      (% style="float: left; width: 2.42in; height: 2.42in; border: 1px solid #000000; padding: 0.05in 0.1in; background: #ffffff" %)
      (((The first paragraph

      The second paragraph)))
      .#-----------------------------------------------------
      .expect|xhtml/1.0
      .#-----------------------------------------------------
      <div style="float: left; width: 2.42in; height: 2.42in; border: 1px solid #000000; padding: 0.05in 0.1in; background: #ffffff"><p>The first paragraph</p><p>The second paragraph</p></div>

      Upon further investigation what seems to happen is that the newline between the parameters and the group block is not supported by the rendering module. This is proven by the following (passing) test case:

      Test-3 (passing)

      .#-----------------------------------------------------
      .input|xwiki/2.0
      .#-----------------------------------------------------
      (% style="float: left; width: 2.42in; height: 2.42in; border: 1px solid #000000; padding: 0.05in 0.1in; background: #ffffff" %)(((The first paragraph

      The second paragraph)))
      .#-----------------------------------------------------
      .expect|xhtml/1.0
      .#-----------------------------------------------------
      <div style="float: left; width: 2.42in; height: 2.42in; border: 1px solid #000000; padding: 0.05in 0.1in; background: #ffffff"><p>The first paragraph</p><p>The second paragraph</p></div>

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              asiri Asiri Rathnayake
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: