[LNT] r309149 - v4_run: Do not assume run parameters are strings
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 26 11:29:29 PDT 2017
Author: matze
Date: Wed Jul 26 11:29:29 2017
New Revision: 309149
URL: http://llvm.org/viewvc/llvm-project?rev=309149&view=rev
Log:
v4_run: Do not assume run parameters are strings
This fixes problems displaying result pages after the newly introduced
'no_errors' storing a boolean value.
Modified:
lnt/trunk/lnt/server/ui/templates/v4_run.html
Modified: lnt/trunk/lnt/server/ui/templates/v4_run.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_run.html?rev=309149&r1=309148&r2=309149&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_run.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_run.html Wed Jul 26 11:29:29 2017
@@ -180,13 +180,13 @@ $('.profile-prev-only').tooltip();
<thead>
<tr><th>Name</th><th>Value</th></tr>
</thead>
- {% for key,value in run.parameters|dictsort(case_sensitive=True) %}
+ {% for key, value in run.parameters|dictsort(case_sensitive=True) %}
<tr>
<td> <b>{{key}}</b> </td>
{# Split lines in multi-line values. #}
- {% if '\n' in value %}
+ {% if '\n' in value|string %}
<td>
- {% for ln in value.split('\n') %}
+ {% for ln in (value|string).split('\n') %}
{{ ln }}<br/>
{% endfor %}
</td>
More information about the llvm-commits
mailing list