[llvm-commits] [LNT] r154715 - /lnt/trunk/lnt/server/ui/templates/v4_utils.html
Daniel Dunbar
daniel at zuster.org
Fri Apr 13 16:36:15 PDT 2012
Author: ddunbar
Date: Fri Apr 13 18:36:14 2012
New Revision: 154715
URL: http://llvm.org/viewvc/llvm-project?rev=154715&view=rev
Log:
views/V4: Insert line breaks in multi-lines 'Run Info' values.
- Also, sort case sensitively.
Modified:
lnt/trunk/lnt/server/ui/templates/v4_utils.html
Modified: lnt/trunk/lnt/server/ui/templates/v4_utils.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_utils.html?rev=154715&r1=154714&r2=154715&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_utils.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_utils.html Fri Apr 13 18:36:14 2012
@@ -109,10 +109,19 @@
<thead>
<tr><th>Name</th><th>Value</th></tr>
</thead>
-{% for key,value in run.parameters|dictsort %}
+{% 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 %}
+ <td>
+ {% for ln in value.split('\n') %}
+ {{ ln }}<br>
+ {% endfor %}
+ </td>
+{% else %}
<td>{{value}}</td>
+{% endif %}
</tr>
{% endfor %}
</table>
More information about the llvm-commits
mailing list