WebAdmin: Respect newline and whitespace characters in results

This commit is contained in:
Badlop
2025-10-22 17:11:55 +02:00
parent 6b3333c3ff
commit d10d7aa8cc
+4 -1
View File
@@ -2197,7 +2197,10 @@ make_command_result_element(_ArgumentsUsed,
|| {ElementName, _ElementFormat} <- TupleElements])]),
?XE(<<"tbody">>,
[?XE(<<"tr">>,
[?XC(<<"td">>, format_result(V, {ElementName, ElementFormat}))
[?XE(<<"td">>,
[?XAC(<<"span">>,
[{<<"style">>, <<"white-space: pre-wrap;">>}],
format_result(V, {ElementName, ElementFormat}))])
|| {V, {ElementName, ElementFormat}}
<- lists:zip(tuple_to_list(Values), TupleElements)])])]);
make_command_result_element(ArgumentsUsed,