diff options
Diffstat (limited to 'src/js/even.js')
-rw-r--r-- | src/js/even.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/even.js b/src/js/even.js index 48db08c..33ca2f3 100644 --- a/src/js/even.js +++ b/src/js/even.js @@ -144,7 +144,8 @@ Even.highlight = function () { for (let i = 0; i < blocks.length; i++) { const block = blocks[i] const rootElement = block.parentElement - const lineCodes = block.innerHTML.split(/\n/).slice(0, -1) + const lineCodes = block.innerHTML.split(/\n/) + if (lineCodes[lineCodes.length - 1] === '') lineCodes.pop() const lineLength = lineCodes.length let codeLineHtml = '' |