diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-06-11 16:45:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-06-11 16:45:00 +0200 |
commit | 755ec706c4e4e4eb6315e2f2f9f2cfc0eed439aa (patch) | |
tree | bf11f5401e488605ba1bfdf533f5baca711bf06e /tex/context/base/core-sys.lua | |
parent | 513177ada9eb9b29f01e3ff34de1338ddb66f617 (diff) | |
download | context-755ec706c4e4e4eb6315e2f2f9f2cfc0eed439aa.tar.gz |
beta 2011.06.11 16:45
Diffstat (limited to 'tex/context/base/core-sys.lua')
-rw-r--r-- | tex/context/base/core-sys.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tex/context/base/core-sys.lua b/tex/context/base/core-sys.lua index 47a5c340d..0be9fd588 100644 --- a/tex/context/base/core-sys.lua +++ b/tex/context/base/core-sys.lua @@ -6,7 +6,8 @@ if not modules then modules = { } end modules ['core-sys'] = { license = "see context related readme files" } -local lower, extname, basename, removesuffix = string.lower, file.extname, file.basename, file.removesuffix +local lower, format = string.lower, string.format +local extname, basename, removesuffix = file.extname, file.basename, file.removesuffix local environment = environment @@ -21,5 +22,5 @@ end statistics.register("result saved in file", function() -- suffix will be fetched from backend - return string.format( "%s.%s", environment.outputfilename, (tex.pdfoutput>0 and "pdf") or "dvi") + return format( "%s.%s", environment.outputfilename, (tex.pdfoutput>0 and "pdf") or "dvi") end) |