Commit 5ab55ea9 authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

fix multiline

parent 1029d313
......@@ -1238,6 +1238,8 @@ function update_module_definition(id) {
var end = lines[line].indexOf(".value")
var key = lines[line].slice(start,end)
var value = mods.mod[id][key]['value']
if (value.indexOf('\n') != -1)
value = value.replace(/\n/g,"\\n")
lines[line] = " mod."+key+".value = '"+value+"'"
}
else if (lines[line].indexOf(".checked =") != -1) {
......
Supports Markdown
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