bug fix on empty lines (trimmed) causing infinite loop

editor-split
Fabien Benetou 1 year ago
parent 90050fa547
commit bcd14747c3
  1. 1
      index.html

@ -2562,6 +2562,7 @@ function addCodeEditor(page="jxr console.log('hello world')", language="javascri
let potentialine = content.slice(pos, pos+width)
forcedLines += line.trim() + '\n'
pos+=line.length
if (line.length==0) pos++
line = ''
}

Loading…
Cancel
Save