Aliased Links in Tables

It seems that when aliased links are placed in tables, a paragraph tag is automatically inserted after the link.

| [aliased links|https://jira.atlassian.com/] add unwanted paragraphs in tables

The resulting HTML for the table row is as follows. Notice the extra paragraph after the link.

<tr>
<td class='confluenceTd'> 
	<a  href='https://jira.atlassian.com/' class='ucern-link'>aliased links</a>

<p> add unwanted paragraphs in tables</p></td>
</tr>

Is this a bug or known issue? Is there any workaround to this problem (e.g. alternate syntax)?

2 answers

1 accepted

This widget could not be displayed.

Hi Shelley,

Have you installed the Confluence source editor add-on? This adds a special icon to the editor that allows you to hand manipulate the storage format (xhtml) thus the ability to fine tune the html tags that are automatically added to the editor.

https://marketplace.atlassian.com/plugins/com.atlassian.confluence.plugins.editor.confluence-source-editor

Hope this helps!

Thanks, but is the paragraph tag really expected by default? It seems odd that I would need to install a special add-on to manipulate the resulting markup in this simple case. This seems like a bug or at least a major limitation of the confluence syntax.

This widget could not be displayed.

Hi Shelley,

If the problem is cosmetic issue, you could also add the following stylesheet to tweak the margin.

<style>
.confluenceTh p, .confluenceTd p {
	margin-bottom:0 !important;
}
</style>

Hope it helps

Thanks, but this is not just a cosmetic issue; it's a syntax issue. I can workaround the resulting display using custom styles, but the markup is still incorrect.

( Incorrect markup causes problems for browsers that don't display styles and for formats other than HTML clients, such as when the page is exported to PDF or Word. )

Also, just to clarify, setting the margins alone is not sufficient, because the paragraph is a block element and will still appear on a new line. Something more like the following would be needed to workaround the resulting styled markup:

{style}
.confluenceTh p, .confluenceTd p {
    display: inline !important;
}
{style}

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

137 views 12 6
Read article

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