Forums

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

How can I remove the <br> from the style macro?

Wolfgang Lutz
Contributor
June 27, 2018

When I use a "Style" (CSS Stylesheet) macro, the macro adds a line break (<br>) to the page.

Example source code:

<div class="conf-macro output-block" data-macro-name="style" data-hasbody="true"><style type="text/css">
.myclass {border:1px solid green;}
</style>
<br></br>
</div>

I use Confluence server version 6.6.2 .

How can I remove this?

br Wolfgang^1

1 answer

0 votes
Mirek
Community Champion
June 27, 2018

If you need any modification of a source code you can check this plugin - Confluence Source Editor - https://marketplace.atlassian.com/apps/1210722/confluence-source-editor?hosting=server&tab=overview. Thanks to that you should be able to remove what is not possible to remove from the editor or macro.

Wolfgang Lutz
Contributor
June 27, 2018

Sorry Mirek,

that's not a <br> added by user I can remove with the source editor because there is no <br>.

The <br> will be displayed only in the view mode.

Look at the source code (a copy from the browser). The <br> is inside the macro <div>.

So why this <br> is there?

By the way in my former Confluence versions there are no macro <div>. When will they be added?

br Wolfgang

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events