Preserve whitespace in string inputs
This commit is contained in:
@ -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 %]
|
||||
|
@ -111,3 +111,7 @@ td.nowrap {
|
||||
.star:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
span.keep-whitespace {
|
||||
white-space: pre-wrap;
|
||||
}
|
Reference in New Issue
Block a user