[NTG-context] Trimming strings and Lua string.trim question

Wolfgang Schuster schuster.wolfgang at gmail.com
Wed Mar 5 16:18:29 CET 2014


Am 05.03.2014 um 16:07 schrieb Rik Kabel <context at rik.users.panix.com>:

>> striplong 
>> 
> 
> It would be nice if striplong worked, but the example fails when string.striplong is used in place of string.strip. The log says:
> 
> ! LuaTeX error [string "\directlua "]:1: attempt to call field 'striplong' (a nil value)
> stack traceback:
>     [string "\directlua "]:1: in main chunk.
> Is the format of the call different than shown in the wiki, or is a different mechanism required to quote a potentially long string?

The name of the function is “strings.striplong”.

Wolfgang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20140305/f0419cb7/attachment.html>


More information about the ntg-context mailing list