diff options
| author | Hans Hagen <pragma@wxs.nl> | 2014-07-10 13:14:00 +0200 | 
|---|---|---|
| committer | Hans Hagen <pragma@wxs.nl> | 2014-07-10 13:14:00 +0200 | 
| commit | bc10e60257b5b448e6fcc7bfaeef633fa2e19735 (patch) | |
| tree | 21f6db9844959848a66afb61a027b6f226879a6c /tex/context/base/file-job.lua | |
| parent | 305f6529b5970f953803716fb0e475c7f52ff3b5 (diff) | |
| download | context-bc10e60257b5b448e6fcc7bfaeef633fa2e19735.tar.gz | |
beta 2014.07.10 13:14
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 | 
