Index: lnt/server/ui/templates/v4_run.html
===================================================================
--- lnt/server/ui/templates/v4_run.html
+++ lnt/server/ui/templates/v4_run.html
@@ -36,6 +36,19 @@
{% block title %}Run Results{% endblock %}
+{% macro newline_aware_cell(value) %}
+ {# Split lines in multi-line values. #}
+ {% if '\n' in value|string %}
+
+ {% for ln in (value|string).split('\n') %}
+ {{ ln }}
+ {% endfor %}
+ |
+ {% else %}
+ {{value}} |
+ {% endif %}
+{% endmacro %}
+
{% macro get_cell_value(cr) %}
{% set test_status = cr.get_test_status() %}
{% set value_status = cr.get_value_status(ignore_small=not options.show_small_diff) %}
@@ -144,7 +157,7 @@
{% for item in machine.fields %}
{{item.name}} |
- {{machine.get_field(item)}} |
+ {{ newline_aware_cell(machine.get_field(item)) }}
{% endfor %}
@@ -154,7 +167,7 @@
{% for key,value in machine.parameters|dictsort %}
{{key}} |
- {{value}} |
+ {{ newline_aware_cell(value) }}
{% endfor %}
@@ -171,7 +184,7 @@
{% for item in run.fields %}
{{item.name}} |
- {{run.get_field(item)}} |
+ {{ newline_aware_cell(run.get_field(item)) }}
{% endfor %}
@@ -184,16 +197,7 @@
{% for key, value in run.parameters|dictsort(case_sensitive=True) %}
{{key}} |
- {# Split lines in multi-line values. #}
- {% if '\n' in value|string %}
-
- {% for ln in (value|string).split('\n') %}
- {{ ln }}
- {% endfor %}
- |
- {% else %}
- {{value}} |
- {% endif %}
+ {{ newline_aware_cell(value) }}
{% endfor %}