From 02f9e33e94d93d13cfba6335e5d409795aa95968 Mon Sep 17 00:00:00 2001 From: Jann Date: Wed, 11 Nov 2020 17:40:13 +0800 Subject: [PATCH] use "pre" tag to make the error message look friendlier --- HtmlTestRunner/template/report_template.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HtmlTestRunner/template/report_template.html b/HtmlTestRunner/template/report_template.html index 4c2256b..e55a68d 100644 --- a/HtmlTestRunner/template/report_template.html +++ b/HtmlTestRunner/template/report_template.html @@ -55,9 +55,9 @@

{{ title }}

{%- if (test_case.stdout or test_case.err or test_case.err) and test_case.outcome != test_case.SKIP %} - {%- if test_case.stdout %}

{{ test_case.stdout }}

{% endif %} - {%- if test_case.err %}

{{ test_case.err[0].__name__ }}: {{ test_case.err[1] }}

{% endif %} - {%- if test_case.err %}

{{ test_case.test_exception_info }}

{% endif %} + {%- if test_case.stdout %}
{{ test_case.stdout }}
{% endif %} + {%- if test_case.err %}
{{ test_case.err[0].__name__ }}: {{ test_case.err[1] }}
{% endif %} + {%- if test_case.err %}
{{ test_case.test_exception_info }}
{% endif %} {%- endif %}