bug fix on empty lines (trimmed) causing infinite loop

This commit is contained in:
2023-05-24 21:41:53 +02:00
parent 90050fa547
commit bcd14747c3
+1
View File
@@ -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 = ''
}