[dev-context] Comma lists and Lua

Wolfgang Schuster schuster.wolfgang at googlemail.com
Thu Jun 7 18:55:49 CEST 2012


Am 07.06.2012 um 18:28 schrieb Hans Hagen:

> On 7-6-2012 18:14, Wolfgang Schuster wrote:
>> Hi,
>> 
>> in the following example the space before the “one” in the line
>> 
>>   \ctxlua{userdata.commalist(" one, two, three")}
>> 
>> is visible in the output. I guess this counts as bug because in the assignment
>> list the space before “a=x” is removed.
> 
> you can change line 113 in util-prs.lua:
> 
> local pattern   = spaces * Ct(value*(separator*value)^0)

Works, the space is gone.

Wolfgang


More information about the dev-context mailing list