[fix] Line breaks not honored in log output

This commit is contained in:
Martin Muehlhaeuser 2018-08-27 19:39:09 +00:00
parent f4907bfc25
commit aaf045df55
1 changed files with 5 additions and 1 deletions

View File

@ -98,7 +98,11 @@ $(function() {
}
self.logMessage = function(timestamp, type, message) {
self.logMessages.push({time: timestamp, type: type, msg: message});
self.logMessages.push({
time: timestamp,
type: type,
msg: message.replace(/\n/gi, "<br>")}
);
}
self.onClearLog = function() {