diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-07-02 14:53:44 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-07-02 14:53:44 +0200 |
commit | e46b1ade1a0b4cabec661aa0f505efd03b9bdc5a (patch) | |
tree | 94e705e1861718844e983f8ec372cd6824775937 /luaotfload-override.lua | |
parent | b4fdea433f1949238fca34af9ba2a8b332e992a4 (diff) | |
download | luaotfload-e46b1ade1a0b4cabec661aa0f505efd03b9bdc5a.tar.gz |
limit font cache controls to actual font cache dir
Diffstat (limited to 'luaotfload-override.lua')
-rw-r--r-- | luaotfload-override.lua | 5 |
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(...) |