summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-14 02:42:13 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-14 02:42:13 +0200
commiteb3482f39ca47f5d1a5bb4b5177fb6cd0c8bafb0 (patch)
tree531d4c72a72ca2589cb08b6d6846f9fa0a3c161f
parent120ce3327618dea784a0482f1db6295b4168062c (diff)
downloadlualibs-eb3482f39ca47f5d1a5bb4b5177fb6cd0c8bafb0.tar.gz
fix missing upvalue
-rw-r--r--lualibs-extended.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/lualibs-extended.lua b/lualibs-extended.lua
index a21bc50..6b67ce2 100644
--- a/lualibs-extended.lua
+++ b/lualibs-extended.lua
@@ -18,8 +18,10 @@ else
error, warn, info = texio.write_nl, texio.write_nl, texio.write_nl -- stub
end
-local stringformat = string.format
-local loadmodule = lualibs.loadmodule
+local stringformat = string.format
+local loadmodule = lualibs.loadmodule
+local texiowrite = texio.write
+local texiowrite_nl = texio.write_nl
--[[doc--
Here we define some functions that fake the elaborate logging/tracking
@@ -34,8 +36,6 @@ if luatexbase and luatexbase.provides_module then
logger = __logger
mklog = function ( ) return logger end
else
- local texiowrite = texio.write
- local texiowrite_nl = texio.write_nl
local stringformat = string.format
mklog = function (t)
local prefix = stringformat("[%s] ", t)