Preserve whitespace in string inputs

This commit is contained in:
Eelco Dolstra
2014-08-13 17:25:08 +02:00
parent 9334b84d6f
commit a2b27c7cf2
3 changed files with 6 additions and 2 deletions

View File

@ -15,7 +15,7 @@
[% FOREACH alt IN input.search_related('jobsetinputalts', {}, { order_by => 'altnr' }) %]
<tt class="inputalt">
[% IF input.type == "string" %]
"[% HTML.escape(alt.value) %]"
"<span class="keep-whitespace">[% HTML.escape(alt.value) %]</span>"
[% ELSE %]
[% HTML.escape(alt.value) %]
[% END %]

View File

@ -111,3 +111,7 @@ td.nowrap {
.star:hover {
cursor: pointer;
}
span.keep-whitespace {
white-space: pre-wrap;
}