Skip to content

Commit f16e16f

Browse files
author
Vadim Demedes
committed
adjust code excerpt line trimming
1 parent 2fa8da9 commit f16e16f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/code-excerpt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = (file, line, options) => {
1919

2020
const lines = excerpt.map(item => ({
2121
line: item.line,
22-
value: truncate(item.value, maxWidth - String(line).length - 1)
22+
value: truncate(item.value, maxWidth - String(line).length - 5)
2323
}));
2424

2525
const joinedLines = lines.map(line => line.value).join('\n');

0 commit comments

Comments
 (0)