Skip to content

Commit bb9c001

Browse files
xiek881028谢恺
andauthored
bugfix: string padding length is error (#6254)
Co-authored-by: 谢恺 <[email protected]>
1 parent 90937af commit bb9c001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-shared-utils/lib/logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const format = (label, msg) => {
2121
return msg.split('\n').map((line, i) => {
2222
return i === 0
2323
? `${label} ${line}`
24-
: line.padStart(stripAnsi(label).length)
24+
: line.padStart(stripAnsi(label).length + line.length + 1)
2525
}).join('\n')
2626
}
2727

0 commit comments

Comments
 (0)