[latex3-commits] [git/LaTeX3-latex3-l3build] main: Adjust code indent (e6b0eaf)

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Feb 19 19:44:46 CET 2023


Repository : https://github.com/latex3/l3build
On branch  : main
Link       : https://github.com/latex3/l3build/commit/e6b0eaf116cf325a45e797e859693bb83ecac533

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

commit e6b0eaf116cf325a45e797e859693bb83ecac533
Author: Yukai Chou <muzimuzhi at gmail.com>
Date:   Sun Feb 19 17:38:51 2023 +0800

    Adjust code indent


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

e6b0eaf116cf325a45e797e859693bb83ecac533
 l3build.lua | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/l3build.lua b/l3build.lua
index afd309f..aa0e58a 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -205,23 +205,23 @@ if #checkconfigs > 1 then
   end
 end
 if #checkconfigs == 1 and
-   checkconfigs[1] ~= "build" and
-   (options["target"] == "check" or options["target"] == "save" or options["target"] == "clean") then
-   local configname  = gsub(checkconfigs[1], "%.lua$", "")
-   local config = "./" .. configname .. ".lua"
-   if fileexists(config) then
-     local savedtestfiledir = testfiledir
-     dofile(config)
-     testdir = testdir .. "-" .. configname
-     -- Reset testsuppdir if required
-     if savedtestfiledir ~= testfiledir and
-       testsuppdir == savedtestfiledir .. "/support" then
-       testsuppdir = testfiledir .. "/support"
-     end
-   else
-     print("Error: Cannot find configuration " ..  checkconfigs[1])
-     exit(1)
-   end
+  checkconfigs[1] ~= "build" and
+  (options["target"] == "check" or options["target"] == "save" or options["target"] == "clean") then
+  local configname  = gsub(checkconfigs[1], "%.lua$", "")
+  local config = "./" .. configname .. ".lua"
+  if fileexists(config) then
+    local savedtestfiledir = testfiledir
+    dofile(config)
+    testdir = testdir .. "-" .. configname
+    -- Reset testsuppdir if required
+    if savedtestfiledir ~= testfiledir and
+      testsuppdir == savedtestfiledir .. "/support" then
+      testsuppdir = testfiledir .. "/support"
+    end
+  else
+    print("Error: Cannot find configuration " ..  checkconfigs[1])
+    exit(1)
+  end
 end
 
 -- Call the main function





More information about the latex3-commits mailing list.