Problem adding the same user macro more than once on a single page

I have defined a user macro, let's call it {current_version}. I want to use it in a page like this:

Make sure you download version {current_version} of the file, because if you download anything but version {current_version} you get gibberish. See below for a list of URLs:
http://www.example.com/files/file{current_version}
Remember to download {current_version} only. Thanks, bye!

But what happens is, if I use a user macro more than once on a page, it conflates them all and sticks them together, so the above page would render like this:

Make sure you download version 1.1.0 only. Thanks, bye!

All the intervening stuff is skipped! I'm using Confluence 3.4. Is this a bug, or is there a workaround, or what?

1 answer

1 accepted

Hi Peter,

Make sure you have your user macro set to have 'no body'. I think what it's doing is seeing the first and last as the opening and closing macros, but you want one that doesn't actually have a closing macro.

Hope that helps!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

287 views 11 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you