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

Script Macro doesn't output result in some cases

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 7.1-milestone-1
    • 6.4
    • Rendering
    • None
    • Integration
    • Unknown

    Description

      For example the following will not output anything:

      {{script language="jav8"}}
      1+2
      {{/script}}
      

      The reason is that our code only outputs the result of the engine eval() call if it's an XDOM, Block or List<Block>. If the eval doesn't output anything to the scriptcontext's writer, and the eval() returns something, we should display it.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: