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

Wiki macros generate double macro markers

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 10.10-rc-1
    • Fix Version/s: 10.10
    • Component/s: Rendering - Async
    • Labels:
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Calling the following code in an XWiki page:

      {{velocity wiki="false"}}
      $services.wysiwyg.toAnnotatedXHTML('{{attachmentSelector classname="XWiki.XWikiUsers" property="avatar"/}}', 'xwiki/2.1')
      {{/velocity}}
      

      will output the startmacro markers twice:

      <!--startmacro:attachmentSelector|-|classname="XWiki.XWikiUsers" property="avatar"--><!--startmacro:attachmentSelector|-|classname="XWiki.XWikiUsers" property="avatar"--><!--startmacro:velocity|-|output="false"
      

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              surli Simon Urli
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: