Clean up header/footer formatting