User macro containing a link forces a line break - how can I remove the line break?

This is for Confluence 3.4 I've got a user macro that contains an ordinary link to a page, eg [contact me|key:Contact page]. The macro is defined as 'no body' and output format of wiki markup.

There is no line break inside the macro. It should render like this:

For more info, contact me. Furthermore, blah blah.

But instead, it renders like this, which messes up my paragraph:

For more info, contact me.

Furthermore, blah blah.

How can I get rid of the invisible line break?

3 answers

1 accepted

0 votes
Answer accepted

I'm closing this because I dealt with the problem using the 'nuclear option' -- just deleted it. Thank you to Matthew for the suggestion, but I'm not technical enough to implement a programmatic solution like that.

I've found for things like this, sometimes it's best to use jQuery to strip out tags that you don't want, after the page has been rendered. Here's an example that removes the text from the livesearch input field.


    AJS.$('.plugin_livesearch_textfieldbox input').val('');
I'm pretty sure you could apply this technique to remove anything in the DOM that you want. 
matthew horn

Thank you, Matthew. I only just noticed your answer (my bad!). I'll try that.

I've also noticed that this problem seems to be fixed in 4.2 (according to a comment on this page:

(Not that I'll be able to take advantage of it. Until they bring back wiki markup or integrate an editor that's less horrible than editing raw XHTML, I'm unlikely to abandon 3.x).

Sure thing. BTW, there's a new plugin for 4.2 that will allow editing the markup directly, although I haven't tried it yet.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,302 views 2 13
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