summaryrefslogtreecommitdiff
path: root/luaotfload-override.lua
diff options
context:
space:
mode:
Diffstat (limited to 'luaotfload-override.lua')
-rw-r--r--luaotfload-override.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/luaotfload-override.lua b/luaotfload-override.lua
index caf3627..225ac68 100644
--- a/luaotfload-override.lua
+++ b/luaotfload-override.lua
@@ -106,7 +106,10 @@ end
stdout = function (category, ...)
local res = { module_name, "|", category, ":" }
- if select("#", ...) == 1 then
+ local nargs = select("#", ...)
+ if nargs == 0 then
+ writeln (tableconcat ({...}))
+ elseif nargs == 1 then
res[#res+1] = select(1, ...) -- around 30% faster than unpack()
else
res[#res+1] = stringformat(...)