summaryrefslogtreecommitdiff
path: root/tex/context/base/file-job.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-03-15 20:40:14 +0200
committerMarius <mariausol@gmail.com>2013-03-15 20:40:14 +0200
commit792b2ca2d206c2c90cc9967a8ae4916f53f902d7 (patch)
tree61a6b50fcad361326d0a7e6c305ab9d291d699e7 /tex/context/base/file-job.lua
parent5649bfe8b7ccdd5a8b02951fc9f6a0dbbdf48256 (diff)
downloadcontext-792b2ca2d206c2c90cc9967a8ae4916f53f902d7.tar.gz
beta 2013.03.15 19:22
Diffstat (limited to 'tex/context/base/file-job.lua')
-rw-r--r--tex/context/base/file-job.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/tex/context/base/file-job.lua b/tex/context/base/file-job.lua
index 9e5912bc7..ea4623d77 100644
--- a/tex/context/base/file-job.lua
+++ b/tex/context/base/file-job.lua
@@ -9,10 +9,11 @@ if not modules then modules = { } end modules ['file-job'] = {
-- in retrospect dealing it's not that bad to deal with the nesting
-- and push/poppign at the tex end
-local format, gsub, match, find = string.format, string.gsub, string.match, string.find
+local gsub, match, find = string.gsub, string.match, string.find
local insert, remove, concat = table.insert, table.remove, table.concat
local validstring = string.valid
local sortedhash = table.sortedhash
+local formatters = string.formatters
local commands, resolvers, context = commands, resolvers, context
@@ -97,9 +98,9 @@ end
function commands.usezipfile(name,tree)
if tree and tree ~= "" then
- resolvers.usezipfile(format("zip:///%s?tree=%s",name,tree))
+ resolvers.usezipfile(formatters["zip:///%s?tree=%s"](name,tree))
else
- resolvers.usezipfile(format("zip:///%s",name))
+ resolvers.usezipfile(formatters["zip:///%s"](name))
end
end
@@ -676,7 +677,7 @@ local function convertexamodes(str)
local data = xml.text(e)
local mode = match(label,"^mode:(.+)$")
if mode then
- context.enablemode { format("%s:%s",mode,data) }
+ context.enablemode { formatters["%s:%s"](mode,data) }
end
context.setvariable("exa:variables",label,(gsub(data,"([{}])","\\%1")))
end