diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-07-01 09:29:41 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-07-01 09:29:41 +0200 |
commit | 14d67849583c68ab0b0ff719abd1347a7d9bf8c8 (patch) | |
tree | 413dfd8838c89ea96ec9fbfe6d803edb6d3e2d55 | |
parent | dbc610c40a39254aba32709d19d7d82130f33cf7 (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.
-rw-r--r-- | ogcp/templates/actions/script_output.html | 2 |
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> |