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

User Macro with TinyURL do not render in PDF/Word export

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      1. Go to Browse > Confluence admin > User Macro
      2. Create a User Macro
      3. On the template field, add the following code:
        ## Macro title: My Macro
        ## Macro has a body: Y or N
        ## Body processing: Selected body processing option
        ## Output: Selected output option
        ##
        ## Developed by: My Name
        ## Date created: dd/mm/yyyy
        ## Installed by: My Name
        
        ## This is an example macro
        ## @param Name:title=Name|type=string|required=true|desc=Your name
        ## @param Colour:title=Favourite 
        #set ($helper = $action.helper)
        <div style="padding:10px;border:1px #114411 solid;background;background:#FFF0DF;"><p style="margin-top:0;"><strong>GOOGLE</strong><br /> View Online: <a href="http://google.com/x/$helper.tinyUrl">http://google.com/x/$helper.tinyUrl</a></p>$body</div>
        
      4. Save it
      5. Now in a new page, type {name_macro, that should auto-populate.
      6. Save it, then go to Tools > Export to PDF
      7. You should get this string in the PDF: http://google.com/x/$helper.tinyUrl

      Workaround:

      You can do that manually, avoiding the User Macro.

      Attachments

        Activity

          People

            Unassigned Unassigned
            wzanchet William Zanchet (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: