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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9 M1, 1.8.2
    • Fix Version/s: 1.8.3, 1.9 M2
    • Component/s: {Unused} Rendering 2.0
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: