Why does View Word file macro screw up text formatting?

The View Word file macro is used on a Confluence page and all text that appears after the macro on the page is formatted differently than the text that appears before the macro (see image below). When we remove the macro, the text is displayed correctly. It's not a major issue, but it's frustrating to see it like this.

2 answers

1 accepted

0 votes
Answer accepted

As mentioned, this may be a solution that may work, but has not been fully tested. I reported my problem to Atlassian and received the answer that this is a bug. I don't remember the bug number though.


My first guess would be that the macro contains an unclosed DIV or other style tag that then applies to the rest of the page. You should be able to view the source in a browser and examine the elements to see what doesn't get closed. A workaround, if you can't edit the macro's source, would be to close that tag manually with an HTML macro after the View Word macro, but before the rest of the page is displayed.

Thanks for a prompt answer. I've been through the source code several times but cannot find any div:s that might not get closed. I haven't tried the HTML macro you suggested, but eventhough it might solve the problem, it's not an option since it goes against company security policy to give any user the ability to use that macro. I'll report it since this works in version 3.4.9 of Confluence. Thanks anyway.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Tuesday in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

183 views 2 10
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