Commit 8ada9db9 authored by Camil Staps's avatar Camil Staps 🐧

Fix off-by-1 in mergeComments (frontend)

parent fb2ebf06
......@@ -145,7 +145,7 @@ function mergeComments(code, comments) {
code[i].length > maxLength)
maxLength = code[i].length;
var line=1;
var line=0;
for (var i=0; i<comments.length; i++) {
if (i < comments.length && comments[i] != '') {
console.log(comments[i].indexOf('\n'),comments[i]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment