[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Avoid a local/global issue (aaf5042b)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Aug 23 15:48:36 CEST 2019


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/aaf5042b111a591636de2d49da4f12b2de5cab15

>---------------------------------------------------------------

commit aaf5042b111a591636de2d49da4f12b2de5cab15
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Aug 23 14:48:36 2019 +0100

    Avoid a local/global issue


>---------------------------------------------------------------

aaf5042b111a591636de2d49da4f12b2de5cab15
 base/build.lua | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/base/build.lua b/base/build.lua
index 0381388b..4589eb4d 100644
--- a/base/build.lua
+++ b/base/build.lua
@@ -143,7 +143,7 @@ checkconfigs = {"build","config-TU"}
 
 update_tag = update_tag_base
 
-function format ()
+function format (doc)
   local errorlevel = unpack ()
   if errorlevel ~=0 then
     return errorlevel
@@ -178,11 +178,11 @@ function format ()
   if not options["config"] or options["config"][1] ~= "config-TU" then
     cp("fonttext.cfg",supportdir,unpackdir)
   end
-  local fmtengines = options["engine"] or checkengines
+  local buildformats = options["engine"] or checkengines
   if not options["config"] then
-    table.insert(fmtengines,"pdftex")
+    table.insert(buildformats,"pdftex")
   end
-  for _,i in ipairs(fmtengines) do
+  for _,i in ipairs(buildformats) do
     errorlevel = format (i, string.gsub (i, "tex$", "") .. "latex.fmt")
     if errorlevel ~=0 then
       return errorlevel





More information about the latex3-commits mailing list