# HG changeset patch # User Kim Alvefur # Date 1458573145 -3600 # Node ID 75902417ff05e87d7cc802dac607cfaf776c5c6a # Parent ff422623e0ba67f9715e4ee4517bc29d55a9d8d7 clix.adhoc: Improve handling of list items diff -r ff422623e0ba -r 75902417ff05 clix/adhoc.lua --- 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