diff options
author | Hans Hagen <pragma@wxs.nl> | 2010-12-22 20:18:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2010-12-22 20:18:00 +0100 |
commit | 3494478e08fa4711d7c0658ab9ca9112a2f28538 (patch) | |
tree | 3262f07d7979585509c5046a0c4908edba7088c6 /tex/context/base/mult-cld.lua | |
parent | 376d3729835dd61f7b71ed0de1dd07804fe44b2b (diff) | |
download | context-3494478e08fa4711d7c0658ab9ca9112a2f28538.tar.gz |
beta 2010.12.22 20:18
Diffstat (limited to 'tex/context/base/mult-cld.lua')
-rw-r--r-- | tex/context/base/mult-cld.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tex/context/base/mult-cld.lua b/tex/context/base/mult-cld.lua index 416ff247e..66def5f93 100644 --- a/tex/context/base/mult-cld.lua +++ b/tex/context/base/mult-cld.lua @@ -727,3 +727,19 @@ setmetatable(delayed, { __index = indexer, __call = caller } ) --~ end --~ --~ context.direct(something) + +-- helpers: + +function context.concat(t,separator) + local done = false + for i=1,#t do + local ti = t[i] + if ti ~= "" then + if done then + context(separator) + end + context(ti) + done = true + end + end +end |