[latex3-commits] [git/LaTeX3-latex3-latex3] box-ops: Tweak definition of kpse_find (7c6bbeb)
Joseph Wright
joseph.wright at morningstar2.co.uk
Sat Apr 6 09:43:46 CEST 2019
Repository : https://github.com/latex3/latex3
On branch : box-ops
Link : https://github.com/latex3/latex3/commit/7c6bbebe54458a32e14b3f79d83ad18310f8bbb4
>---------------------------------------------------------------
commit 7c6bbebe54458a32e14b3f79d83ad18310f8bbb4
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sat Apr 6 08:43:46 2019 +0100
Tweak definition of kpse_find
The old version missed out the local ...
>---------------------------------------------------------------
7c6bbebe54458a32e14b3f79d83ad18310f8bbb4
l3kernel/l3luatex.dtx | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/l3kernel/l3luatex.dtx b/l3kernel/l3luatex.dtx
index fee4f67..e756b67 100644
--- a/l3kernel/l3luatex.dtx
+++ b/l3kernel/l3luatex.dtx
@@ -319,9 +319,6 @@ local byte = string.byte
local floor = math.floor
local format = string.format
local gsub = string.gsub
-if not resolvers then
- local kpse_find = kpse.find_file
-end
local lfs_attr = lfs.attributes
local md5_sum = md5.sum
local open = io.open
@@ -339,9 +336,7 @@ local utf8_char = (utf and utf.char) or unicode.utf8.char
%
% Deal with Con\TeX{}t: doesn't use |kpse| library.
% \begin{macrocode}
-if resolvers then
- kpse_find = resolvers.findfile
-end
+local kpse_find = (resolvers and resolvers.findfile) or kpse.find_file
% \end{macrocode}
%
% \begin{macro}[int]{escapehex}
More information about the latex3-commits
mailing list