summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-07-01 09:29:41 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-07-01 09:29:41 +0200
commit14d67849583c68ab0b0ff719abd1347a7d9bf8c8 (patch)
tree413dfd8838c89ea96ec9fbfe6d803edb6d3e2d55 /ogcp/templates/actions
parentdbc610c40a39254aba32709d19d7d82130f33cf7 (diff)
templates: preserve formatting in script output
Use <pre> instead of <samp> to display command output, as <pre> preserves the new lines and the format of its inner text.
Diffstat (limited to 'ogcp/templates/actions')
-rw-r--r--ogcp/templates/actions/script_output.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/templates/actions/script_output.html b/ogcp/templates/actions/script_output.html
index a491f4c..efbccf4 100644
--- a/ogcp/templates/actions/script_output.html
+++ b/ogcp/templates/actions/script_output.html
@@ -64,7 +64,7 @@
</div>
<div id="collapse_{{ loop.index }}" class="collapse" aria-labelledby="heading_{{ loop.index }}">
<div class="card-body">
- <p><samp>{{ client['output'] }}</samp></p>
+ <p><pre>{{ client['output'] }}</pre></p>
</div>
</div>
</div>