Some assorted fixes for html2pdf (converted line endings) and the patient report.