summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/mlib-lua.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2017-10-29 16:50:11 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2017-10-29 16:50:11 +0100
commit7fc4b935d045c84e89459e726ff54ae331e4c574 (patch)
tree0a4587b2e4f72ccb5feff81c348c5138f4ece7e7 /tex/context/base/mkiv/mlib-lua.lua
parentd91c37679b13162a4ead85abbe564090b2e1b51c (diff)
downloadcontext-7fc4b935d045c84e89459e726ff54ae331e4c574.tar.gz
2017-10-29 15:50:00
Diffstat (limited to 'tex/context/base/mkiv/mlib-lua.lua')
-rw-r--r--tex/context/base/mkiv/mlib-lua.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/mlib-lua.lua b/tex/context/base/mkiv/mlib-lua.lua
index 83c1e49ee..b2d97226a 100644
--- a/tex/context/base/mkiv/mlib-lua.lua
+++ b/tex/context/base/mkiv/mlib-lua.lua
@@ -68,7 +68,7 @@ local f_pair = formatters["(%.16f,%.16f)"]
local f_triplet = formatters["(%.16f,%.16f,%.16f)"]
local f_quadruple = formatters["(%.16f,%.16f,%.16f,%.16f)"]
-local function mpprint(...)
+local function mpprint(...) -- we can optimize for n=1
for i=1,select("#",...) do
local value = select(i,...)
if value ~= nil then
@@ -258,7 +258,7 @@ local function mpquoted(fmt,s,...)
buffer[n] = lpegmatch(p,formatters[fmt](s,...))
elseif fmt then
-- buffer[n] = '"' .. fmt .. '"'
- buffer[n] = '"' .. lpegmatch(p,fmt) .. '"'
+ buffer[n] = lpegmatch(p,fmt)
else
-- something is wrong
end