Previously added span macros rendered incorrectly
Asked by Wendy Fergusson:

I'm running Confluence 5.7.1 and Content Formatting 4.2.7 (free macros only). We upgraded from Confluence 5.6.3 on 2015-04-04, I'm not sure exactly when this problem first appeared, but it may have been after that upgrade.

I have a test page with macro calls on it that I use for testing. One day I noticed that the span macro on the page was no longer working. However, when I add a new span macro to the page, it works fine.

This is the storage format for the original span macro (added over a year ago):

```
&lt;ac:structured-macro ac:name="span"&gt;    &lt;ac:parameter ac:name="class"&gt;PMA_Class_Cancelled&lt;/ac:parameter&gt;    &lt;ac:parameter ac:name="atlassian-macro-output-type"&gt;INLINE&lt;/ac:parameter&gt;    &lt;ac:rich-text-body&gt;      &lt;p&gt;This text is grey and crossed out&lt;/p&gt;    &lt;/ac:rich-text-body&gt;  &lt;/ac:structured-macro&gt;
```

When I inspect element (Chrome 42.0.2311.135) I see this:

span macro previously added.png

You can see the macro body text is outside the span tags.

This is the storage format for the newly added span macro (added after 5.7.1 upgrade):

```
&lt;ac:structured-macro ac:name="span"&gt;    &lt;ac:parameter ac:name="class"&gt;PMA_Class_Cancelled&lt;/ac:parameter&gt;    &lt;ac:parameter ac:name="atlassian-macro-output-type"&gt;INLINE&lt;/ac:parameter&gt;    &lt;ac:rich-text-body&gt;      &lt;p&gt;        &lt;span&gt;This text should also be grey and crossed out&lt;/span&gt;      &lt;/p&gt;    &lt;/ac:rich-text-body&gt;  &lt;/ac:structured-macro&gt;
```

And inspect element shows this:

span macro new.png

Here the macro body text is inside (two sets of) span tags.

So it looks like the required encoding changed at some point. Was there a migration task that I missed? Is there a way to fix all the pre-existing span macros in bulk?  
[](https://community.atlassian.com/t5/Confluence-questions/Previously-added-span-macros-rendered-incorrectly/qaq-p/452080?attachment-id=7612){#link_11886fd8cf5408}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/76482/1/span%20macro%20new.png){#display_11886fd8cf5408_0}  
[](https://community.atlassian.com/t5/Confluence-questions/Previously-added-span-macros-rendered-incorrectly/qaq-p/452080?attachment-id=7613){#link_11886fd8cf5408_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/76482/2/span%20macro%20previously%20added.png){#display_11886fd8cf5408_2}


Answers:
author: Divya Margani [Adaptavist]
body: Hi @Wendy Fergusson,

This is to bring to your notice that the span macro issue that you have reported has been fixed. The fix has been included in the latest released version - Content Formatting Macros 4.2.9. You can download the latest version from the Marketplace. <https://marketplace.atlassian.com/plugins/com.adaptavist.confluence.contentFormattingMacros/versions>

Regards

Divya Margani

Support \& QA Analyst \| Adaptavist


author: Wendy Fergusson
body: I first tried emailing plugin-support@adaptavist.com but I guess that's obsolete now. Thanks, I've updated my reference information.


author: Monika Turska [Adaptavist]
body: Hi @Wendy Fergusson , we try to keep an eye on Atlassian Answers on regular basis, although I'd recommend you to raise a support issue with Adaptavist Product Support team directly, especially that our team often needs additional (sometimes client sensitive) information in order to investigate the root cause of an issue - all details re. Support SLA here <http://www.adaptavist.com/w/about/adaptavist-product-support-sla/>


author: Wendy Fergusson
body: Thanks Sharon. What is the best way to report issues with Adaptavist plugins? It seemed to take a long time to get a response through this forum - I was starting to wonder whether it was still active.


author: Sharon Hinde
body: Hi Wendy,we are getting reports of this issue here at Adaptavist and have assigned a developer to look in to it as soon as possible. I will let you know when we have a fix in place.RegardsSharon Hinde \| Senior Webmaster \| Adaptavist


Tags: addon-com.adaptavist.confluence.contentformat