Skip to content

Commit 711eda1

Browse files
committed
minor
1 parent 73e3971 commit 711eda1

File tree

1 file changed

+6
-1
lines changed
  • services/static-webserver/client/source/class/osparc/widget/logger

1 file changed

+6
-1
lines changed

services/static-webserver/client/source/class/osparc/widget/logger/LoggerModel.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,12 @@ qx.Class.define("osparc.widget.logger.LoggerModel", {
113113
newRow["level"] = this.self().getLevelIcon(newRow.logLevel);
114114
newRow["time"] = osparc.utils.Utils.formatTime(newRow.timeStamp, true);
115115
newRow["who"] = newRow.label;
116-
newRow["msgRich"] = newRow.msg.replace(/\n/g, "<br>");
116+
117+
// there might a double backslash before the n
118+
let clean = newRow.msg.replace(/\\n/g, "<br>");
119+
clean = newRow.msg.replace(/\n/g, "<br>");
120+
newRow["msgRich"] = clean;
121+
117122
this.__rawData.push(newRow);
118123
});
119124
},

0 commit comments

Comments
 (0)