diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-06-11 16:45:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-06-11 16:45:00 +0200 |
commit | 755ec706c4e4e4eb6315e2f2f9f2cfc0eed439aa (patch) | |
tree | bf11f5401e488605ba1bfdf533f5baca711bf06e /tex/context/base/lxml-sor.lua | |
parent | 513177ada9eb9b29f01e3ff34de1338ddb66f617 (diff) | |
download | context-755ec706c4e4e4eb6315e2f2f9f2cfc0eed439aa.tar.gz |
beta 2011.06.11 16:45
Diffstat (limited to 'tex/context/base/lxml-sor.lua')
-rw-r--r-- | tex/context/base/lxml-sor.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tex/context/base/lxml-sor.lua b/tex/context/base/lxml-sor.lua index a159fd4e0..951017bcd 100644 --- a/tex/context/base/lxml-sor.lua +++ b/tex/context/base/lxml-sor.lua @@ -6,9 +6,8 @@ if not modules then modules = { } end modules ['lxml-sor'] = { license = "see context related readme files" } -local format, concat = string.format, table.concat +local format, concat, rep = string.format, table.concat, string.rep local lpegmatch = lpeg.match -local texsprint, ctxcatcodes = tex.sprint, tex.ctxcatcodes local xml, lxml = xml, lxml @@ -66,7 +65,7 @@ function lxml.sorters.show(name) for i=1,#entries do if #entries[i][2] > maxn then maxn = #entries[i][2] end end - context.starttabulate { "|Tr|Tr|" .. string.rep("Tlp|",maxn) } + context.starttabulate { "|Tr|Tr|" .. rep("Tlp|",maxn) } NC() bold("n") NC() bold("id") if maxn > 1 then |