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

Wiki macros generate double macro markers

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: