diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-07-10 14:15:03 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-07-10 14:15:03 +0200 |
commit | c9b642d1b85111d8dcd94c443161e74583207e7d (patch) | |
tree | d4a78023b248acc94364b94d0790552fc160f3c6 /tex/context/base/file-job.lua | |
parent | 3ce833aa5de4b2955ef00422bc3d1d77735116d5 (diff) | |
download | context-c9b642d1b85111d8dcd94c443161e74583207e7d.tar.gz |
2014-07-10 13:17:00
Diffstat (limited to 'tex/context/base/file-job.lua')
-rw-r--r-- | tex/context/base/file-job.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tex/context/base/file-job.lua b/tex/context/base/file-job.lua index ca0de2696..bbc7abcd0 100644 --- a/tex/context/base/file-job.lua +++ b/tex/context/base/file-job.lua @@ -234,21 +234,23 @@ local suffixes = { } local function useanyfile(name,onlyonce) - local s = suffixes[file.suffix(name)] + local s = suffixes[suffixonly(name)] if s then - s(removesuffix(name),onlyonce) + -- s(removesuffix(name),onlyonce) + s(name,onlyonce) -- so, first with suffix, then without else usetexfile(name,onlyonce) -- e.g. ctx file ---~ resolvers.readfilename(name) + -- resolvers.readfilename(name) end end commands.useanyfile = useanyfile function resolvers.jobs.usefile(name,onlyonce,notext) - local s = suffixes[file.suffix(name)] + local s = suffixes[suffixonly(name)] if s then - s(removesuffix(name),onlyonce,notext) + -- s(removesuffix(name),onlyonce,notext) + s(name,onlyonce,notext) -- so, first with suffix, then without end end |