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

2 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

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

90 views 0 6
Read article

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