Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×

Forums

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

Is it possible to stop the "Excerpt Include" macro from adding hard returns when you publish?

CJ February 9, 2023

Is it possible to prevent the 'Excerpt include' macro from inserting hard returns before and after the macro?

For example, this is the 'Excerpt' macro I set up:

excerpt.png

And, on another page, I've used the 'Excerpt include' macro to insert my original excerpt (I've also ticked 'Remove surrounding panel').  In the edit mode, the macro displays inline:

include.png

 

However, when I publish the page, a hard return is inserted before and after the 'Excerpt include' macro, so it appears on its own line:

display.png

I would like the published page to appear the same as it does in 'Edit mode' (i.e. the 'included' macro should appear inline with the rest of the text, and not have the hard returns).  The line breaks make it hard to read and it doesn't look great.

Does anyone know how prevent 'excerpt include' from adding hard returns. Or are there any other approaches (that don't require a paid add-on) to take content from one page and insert it, inline, into another page?

In sever the 'Excerpt include' macro displays inline, so the change in behaviour in the Cloud version of this macro has felt like a backwards step.

I've already voted for CONFCLOUD-74427 , but it doesn't seem to have much traction, so I'm wondering if the community might have some more help?

2 answers

1 accepted

1 vote
Answer accepted
Kian Stack Mumo Systems
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 10, 2023

@CJ

I don't think there is a way to do this.. I tried even using one the source code editing plugins and could not get it to work. If that ticket you linked does not have any workarounds listed, it's likely that there are not any!

Thanks,

Kian

CJ October 22, 2023

Thanks Kian. No workaround is listed, unfortunately. I've just decided to stop using this macro if I want it to display inline.

For the record:

  • If anyone is keen to have this feature, then you can add a vote to this issue: CONFCLOUD-74427 
  • If the page uses the legacy editor, then the macro displays inline, so you might want to keep that in mind before converting a page to the new editor.
0 votes
ronald_bergmann
Contributor
October 20, 2023

+10

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events