diff --git a/app/main/views/templates.py b/app/main/views/templates.py index 99831f0b8..ed1c9c829 100644 --- a/app/main/views/templates.py +++ b/app/main/views/templates.py @@ -162,7 +162,7 @@ def view_template_as_dvla_markup(service_id, template_id): str(LetterDVLATemplate( template, notification_reference=1, - )).replace('', '\n'), + )), mimetype='text/plain', )