There is a bug in the Confluence {code} tag when exporting to PDF.
Using the {noformat} tag instead provides similar benefits and allows
succesful export to PDF.