We use Confluence to provide technical support documentation and the code macro is used on many pages to display code examples.
Just noticed that some of the examples in the exported PDF made no sense at all. On investigation it became clear that when the example included a long line of hyphens (a comment to break up the text in the configuration file), some of the subsequent lines of code were simply omitted from the exported document. No idea why this is happening or how many other topics might be affected but not good behaviour.
The wiki text:
{code}
# JAVA ANALYSIS -------------------------------------------------------------------------------------
projects/JavaApp1/*
projects/JavaApp2/*
projects/NewJavaApp/*
# Maintainability
....
{code}
Appears as expected in the browser but appears in the PDF as:
{code}
# JAVA ANALYSIS
-------------------------------------------------------------------------------------
Maintainability
....
{code}