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

A series of {{script language="groovy"}} macros will only output the result of first macro

    XMLWordPrintable

Details

    • Unit
    • Unknown

    Description

      Consider the following series of script macros on a wiki page:

      {{script language="groovy"}}println("1"){{/script}}
      {{script language="groovy"}}println("2"){{/script}}
      {{script language="groovy"}}println("3"){{/script}}
      {{script language="groovy"}}println("4"){{/script}}
      {{script language="groovy"}}println("5"){{/script}}
      

      This will only output the result of first macro "1".

      Interestingly, following execution works without any issues:

      {{groovy}}println("1"){{/groovy}}
      {{groovy}}println("2"){{/groovy}}
      {{groovy}}println("3"){{/groovy}}
      {{groovy}}println("4"){{/groovy}}
      {{groovy}}println("5"){{/groovy}}
      

      And prints the results correctly.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: