Extra paragraph in th

Hi, I have a user macro that outputs two spans. When this macro is inserted in a th, there is a <p>&nbsp;</p> at the beginning of the th and at the end. I removed from the source editor but once I save the page they are back.



1 answer

1 accepted

0 vote
Davin Studer Community Champion Jun 02, 2014

If it is automatically putting it back in you might be able to craft some css to set the display on them to none and include it in your user macro. A hack I know, but it might get the job done. Such as ...

th p:first-child, th p:last-child {
    display: none;

Or you could remove them with javascript on page load. Again, you could put the JS in your user macro to do this.

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

1,716 views 25 10
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