32 if item.type:match"%-multi" then |
32 if item.type:match"%-multi" then |
33 local t = { }; |
33 local t = { }; |
34 repeat |
34 repeat |
35 local line = io.read("*l"); |
35 local line = io.read("*l"); |
36 if line and line ~= "" then |
36 if line and line ~= "" then |
37 t[#t+1] = line; |
37 if item.type:match"list%-" then |
|
38 t[#t+1] = { label = line, value = line, default = true }; |
|
39 else |
|
40 t[#t+1] = line; |
|
41 end |
38 end |
42 end |
39 until not line or line == ""; |
43 until not line or line == ""; |
40 if item.type == "text-multi" then |
44 if item.type == "text-multi" then |
41 t = table.concat(t, "\n"); |
45 t = table.concat(t, "\n"); |
42 end |
46 end |