Software /
code /
clix
Changeset
125:75902417ff05
clix.adhoc: Improve handling of list items
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 21 Mar 2016 16:12:25 +0100 |
parents | 124:ff422623e0ba |
children | 126:c9d03a70a936 |
files | clix/adhoc.lua |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/clix/adhoc.lua Mon Mar 21 16:11:54 2016 +0100 +++ b/clix/adhoc.lua Mon Mar 21 16:12:25 2016 +0100 @@ -34,7 +34,11 @@ repeat local line = io.read("*l"); if line and line ~= "" then - t[#t+1] = line; + if item.type:match"list%-" then + t[#t+1] = { label = line, value = line, default = true }; + else + t[#t+1] = line; + end end until not line or line == ""; if item.type == "text-multi" then