fixing formatting for PDF export