[latex3-commits] [git/LaTeX3-latex3-latex3] master: Tweak definition of kpse_find (a855357)
Joseph Wright
joseph.wright at morningstar2.co.uk
Sat Apr 6 09:45:58 CEST 2019
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/a8553578333462328d119a479962f0bb2bc904a0
>---------------------------------------------------------------
commit a8553578333462328d119a479962f0bb2bc904a0
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 ...
>---------------------------------------------------------------
a8553578333462328d119a479962f0bb2bc904a0
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