mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-04-26 13:34:45 +00:00
Fix newlines in logs (#3808)
This commit is contained in:
parent
1a39d57f71
commit
d7028cfbef
1 changed files with 2 additions and 2 deletions
|
@ -184,7 +184,7 @@ function writeLog(line: Partial<LogLine>) {
|
||||||
logBuffer.value.push({
|
logBuffer.value.push({
|
||||||
index: line.index ?? 0,
|
index: line.index ?? 0,
|
||||||
number: (line.index ?? 0) + 1,
|
number: (line.index ?? 0) + 1,
|
||||||
text: ansiUp.value.ansi_to_html(decode(line.text ?? '')),
|
text: ansiUp.value.ansi_to_html(`${decode(line.text ?? '')}\n`),
|
||||||
time: line.time ?? 0,
|
time: line.time ?? 0,
|
||||||
type: null, // TODO: implement way to detect errors and warnings
|
type: null, // TODO: implement way to detect errors and warnings
|
||||||
});
|
});
|
||||||
|
@ -254,7 +254,7 @@ async function download() {
|
||||||
downloadInProgress.value = false;
|
downloadInProgress.value = false;
|
||||||
}
|
}
|
||||||
const fileURL = window.URL.createObjectURL(
|
const fileURL = window.URL.createObjectURL(
|
||||||
new Blob([logs.map((line) => decode(line.data)).join('')], {
|
new Blob([logs.map((line) => decode(line.data ?? '')).join('\n')], {
|
||||||
type: 'text/plain',
|
type: 'text/plain',
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue