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:

 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.




2 answers

Is there no way to do this?



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.



Vijay Ramamurthy

Suggest an answer

Log in or Join to answer
Community showcase
Davin Studer
Published yesterday in Confluence

FUME – A Better Confluence User Macro Editor Experience

...\\.title', editorDiv: 'userMacroEditorDiv', isNew: function(){ return AJS.$('#user-macro-form').prop('name') == 'addusermacro' ? true : false; }, editor: null, isDirty...

30 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot