IDEMPIERE-6309 Output of task is better formatted as a console font (#2550)

* IDEMPIERE-6309 Output of task is better formatted as a console font

* - minor improvement
This commit is contained in:
Carlos Ruiz 2024-11-22 03:25:30 +01:00
parent b9d6cdc4e9
commit e65879c201
1 changed files with 5 additions and 3 deletions

View File

@ -125,10 +125,12 @@ public class WTask extends Window implements EventListener<Event>, IHelpContext
Executions.activate(desktop, 500);
try {
StringBuilder sb = new StringBuilder();
sb.append(osTask.getOut())
.append("<br>-----------<br>")
sb.append("<pre><code>")
.append(osTask.getOut())
.append("-----------<br><p style=\"color:red\">")
.append(osTask.getErr())
.append("<br>-----------");
.append("</p>-----------<br>")
.append("</code></pre>");
info.setContent(sb.toString().replace("\n", "<br>"));
if (!osTask.isAlive())