Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

remove line break between macros

Juan Tena April 27, 2018

Hi, I'm struggling to remove the line break between Expand macros, (see red thick line) recommendations2.png

I tried "Source Editor" add-on with no success. Any recommendations? Thanks!

 

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 30, 2018

Joaquin,

Can you confirm this is the tutorial you used to try to remove the line?

If it did not work can you confirm your Confluence version so I can test that?

Regards,

Shannon

Juan Tena April 30, 2018

Hello Shannon, I'm with Confluence Cloud.

Yes, I tried source editor, but I'm not html expert, so maybe I just did it wrong.

I created this article for testing purposes:

11.png

I tried to find <p> tags to remove the line between both expands marcos without sucess.

This is the html code that source editor shows:

12.png

<p><br /></p>
<ac:structured-macro ac:name="expand" ac:schema-version="1" ac:macro-id="4aa0660c-4357-40bd-9e05-8d78a39dc9fc">
<ac:parameter ac:name="title">first</ac:parameter>
<ac:rich-text-body>
<p>Sample text1</p>
</ac:rich-text-body>
</ac:structured-macro>
<p class="auto-cursor-target"><br /></p>
<ac:structured-macro ac:name="expand" ac:schema-version="1" ac:macro-id="c59cb2d8-c8c1-4831-b1ad-62b778f7524c">
<ac:parameter ac:name="title">second</ac:parameter>
<ac:rich-text-body>
<p>Sample text2</p>
</ac:rich-text-body>
</ac:structured-macro>
<p class="auto-cursor-target"><br /></p>
<p class="auto-cursor-target"><br /></p>

 

Maybe you can tell me which line I should remove?

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 1, 2018

Thank you for confirming, Joaquin.

The add-on you're using is different from the one in the example which is not available for Cloud.

However, I tested it with my Cloud instance and the add-on you're using, and it does appear this level of customization is not possible on Cloud. Even if I remove the <p> entirely there will remain a space between the two Expand macros.

I hope that clarifies things but do let me know if you have any further questions.

Regards,

Shannon

Xarkam March 9, 2019

Hello @Shannon S , I'm with Confluence Server (latest version) and I'ave also line break cannot removed by edit source code:

<p class="auto-cursor-target">
<br/>
</p>

Regards,

Xarkam.

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 12, 2019

Xarkam,

This thread was about Confluence Cloud specifically, where such an edit isn't possible.

Since you're on Server, I would recommend raising a new thread for your issue, and the community will be able to help you.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events