Skip to content

Commit 340a001

Browse files
committed
fix: preserve additional new lines
1 parent f6ae40e commit 340a001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/consola.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export default class Consola {
214214
if (!Array.isArray(logObj.additional)) {
215215
logObj.additional = logObj.additional.split('\n')
216216
}
217-
logObj.args.push('\n', ...logObj.additional)
217+
logObj.args.push('\n' + logObj.additional.join('\n'))
218218
delete logObj.additional
219219
}
220220

0 commit comments

Comments
 (0)