Skip to end of metadata
Go to start of metadata

We're customizing the content of a panel, and almost any text we put in is getting wrapped in a paragraph tag, which is really screwing up the formatting. We just upgraded to 3.4.10M2, but I'm pretty confident that it was doing this before as we identified the formatting problem prior to the upgrade, but I was only just now looking into it.

Is there some way to stop the <p> tags, and why are they even being added?

This in the title panel:

{span}
h3. {builder-pagetitle}
{span}
{span}
Some text
{span}

Is resulting in this HTML:

<span>
<h3>
<a name="MyPage"/>
My Page
</h3>
</span>
<span>
<p>Some text</p>
</span>
  • No labels

3 Comments

  1. Annoying isnt it ... that's the atlassian wiki-markup renderer for you, it seems to want to inject p tags at the drop of a hat!

    In this case I suspect that it may be the linefeeds that are causing your problems, eg:

    {span}test{span}
    
    {span}
    test2
    {span}
    

    Results in

    <span>test</span>
    
    <span>
    <p>test2</p>
    </span>
    
    1. Unknown User (mikelcu)

      You rock. Unreal, removing the linebreaks did make the <p> go away. I had 0 luck finding that documented anywhere, but at least now that I know I can actually avoid them, it make a little more sense...better than it being mandatory.

      -M

      1. I think that the reasoning behind it is that when you are typing blocks of text, as you would in a wiki, then when you press return that it's fair to assume you want to create a new Paragraph block ... its pretty sensible when you look at it from the perspective of text, but bally annoying when you are trying to craft html :s