Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-23704

Default user macro parameters ignored

XMLWordPrintable

      User macros appear to be ignoring the default value, this leaves an undefined value that is that is passed verbatim in the html.

      For example, the line

        1. @param width:title=Width|type=string|default=600|desc=Width in pixels

      plus this invocation (note: width not set)

      {iframetest:source=http://www.evernote.com|height=500}

      produces this code

       <p><iframe width="$paramwidth" height="500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.evernote.com"></iframe>
      <br /><small><a href="http://www.evernote.com">View full page</a></small></p>
              </div>
      

      "paramwidth" has passed through to the html as unknown

      I'll document the full example iin a comment.

              Unassigned Unassigned
              02128eaf8ea1 Jim Birch
              Votes:
              39 Vote for this issue
              Watchers:
              28 Start watching this issue

                Created:
                Updated: