Skip to content

Commit 0415dda

Browse files
committed
Fix missing close span on last boring line
1 parent d0856d5 commit 0415dda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

book/build.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ while (dirs.length) {
8282
if (i > 0 && (boring[i - 1] || ellipsis[i - 1])) {
8383
line = '</span>' + line;
8484
}
85+
if (i + 1 === highlightedLines.length && (boring[i] || ellipsis[i])) {
86+
line = line + '</span>';
87+
}
8588
return line;
8689
})
8790
.join('\n');

0 commit comments

Comments
 (0)