In some circumstances, additional <span> or <div> classes in the Confluence page storage format can affect the formatting for generated exports.
Copying an image from the Confluence page view and pasting the image into the Confluence edit mode can add a <span class>:
In the generated export, this can cause inline images to be rendered on a new line in the export. Removing the <span> fixes this issue. **
Instead of using <span> elements in your macros you can use <strong>
Instead of <div> you may try <p>