Skip to content

Commit b3a8cc0

Browse files
cdjacksonflorian-h05
authored andcommitted
Wrap lines in log messages with line feeds
Signed-off-by: Chris Jackson <[email protected]>
1 parent ce53cc3 commit b3a8cc0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bundles/org.openhab.ui/web/src/pages/developer/log-viewer.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
table-layout auto
219219
220220
td.nowrap
221-
padding 5px
221+
padding 0px
222222
text-align left
223223
white-space nowrap
224224
@@ -249,6 +249,7 @@
249249
250250
tr.table-rows
251251
height 31px
252+
vertical-align top
252253
253254
tr.error
254255
background-color rgb(255, 96, 96)
@@ -529,7 +530,7 @@ export default {
529530
milliseconds: ms,
530531
level: logEntry.level.toUpperCase(),
531532
loggerName: logEntry.loggerName,
532-
message: logEntry.message
533+
message: logEntry.message.replace(/\n/g, '<br>')
533534
}
534535
535536
this.batchLogs.push(entry)

0 commit comments

Comments
 (0)