Skip to content
Snippets Groups Projects
Commit ad2edfc9 authored by ml bonhomme's avatar ml bonhomme :bee:
Browse files

Do not trim leading spaces in logs

parent 7adbbe82
No related branches found
No related tags found
1 merge request!1426Do not trim leading spaces in logs
......@@ -20,7 +20,7 @@ export default {
},
computed: {
splitLogs () {
const lines = this.logs.split('\n').map(l => l.trim())
const lines = this.logs.split('\n').map(l => l.trimEnd())
// Return non empty log lines with their color style
return lines.filter(l => l).map(line => ({ line, style: this.getColorStyle(line) }))
}
......@@ -39,7 +39,6 @@ export default {
.code {
padding: 0;
font-family: monospace;
white-space: pre;
background-color: transparent;
white-space: pre-wrap;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment