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

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.

<script>

  AJS.toInit(function(){
    AJS.$('.plugin_livesearch_textfieldbox input').val('');
  });
</script>
I'm pretty sure you could apply this technique to remove anything in the DOM that you want. 
HTH,
matthew horn
http://tech.groups.yahoo.com/group/confluence_users/

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: https://confluence.atlassian.com/display/DOC/Confluence+4.0+Editor+-+Customer+Feedback)

(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
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 Apr 13, 2018 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...

2,922 views 27 12
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