How do I get the current page title in my page without a line feed?

I created a User Macro to get the current page title, as described here:

https://community.atlassian.com/t5/Confluence-questions/Get-Page-Title-in-template/qaq-p/435016

 It works, but it adds a line feed before the title.  How can I prevent that line feed?

To expand on my goal, I'm using the SQL Query macro to pull data from a database based on the current page name.  When I add my macro inside the SQL Query macro, the page name has a line feed in it.

Thanks,

 

-Scott

3 answers

Is there no way to do this?

Thanks,

-Scott

Hi @Scott Genevish,

 

Can you please raise a request in our support portal and provide us the code which you used for your user macro and well as the storage format of the page which you are facing the issue as it will be helpful for us to further troubleshoot the issue.

 

Regards,

Vijay Ramamurthy

Hi @Scott Genevish,

When you insert the macro and click on it, do you get two additional icons next to the Remove button? If you do, select the first one (Display in new line). That should remove the extra line above the title.

Peter

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

4,927 views 20 14
View question

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