It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Kathleen James Mar 28, 2012

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
Kathleen James Oct 09, 2012

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.

1 vote
Matthew J. Horn Apr 27, 2012

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/
Kathleen James May 31, 2012

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).

0 votes
Matthew J. Horn May 31, 2012

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

909 views 0 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you