[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Clean-up (471959b)

Eisuke Kawashima e-kwsm at github.github.io
Wed Oct 30 05:49:41 CET 2019


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/471959b427c7fb70fe0d76f8e13cf7439d5bfbcd

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

commit 471959b427c7fb70fe0d76f8e13cf7439d5bfbcd
Author: Eisuke Kawashima <e-kwsm at users.noreply.github.com>
Date:   Mon Oct 28 06:58:57 2019 +0900

    Clean-up


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

471959b427c7fb70fe0d76f8e13cf7439d5bfbcd
 src/luaotfload-main.lua | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua
index aa876ea..cd4e285 100644
--- a/src/luaotfload-main.lua
+++ b/src/luaotfload-main.lua
@@ -44,25 +44,25 @@ luaotfload.fontloader_package     = "reference"    --- default: from current Con
 
 if not tex or not tex.luatexversion then
     error "this program must be run in TeX mode" --- or call tex.initialize() =)
-else
-    --- version check
-    local major    = tex.luatexversion / 100
-    local minor    = tex.luatexversion % 100
-    local revision = tex.luatexrevision --[[ : string ]]
-    local revno    = tonumber (revision)
-    local minimum  = luaotfload.min_luatex_version
-    local actual   = { major, minor, revno or 0 }
-    if actual [1] < minimum [1]
+end
+
+--- version check
+local major    = tex.luatexversion / 100
+local minor    = tex.luatexversion % 100
+local revision = tex.luatexrevision --[[ : string ]]
+local revno    = tonumber (revision)
+local minimum  = luaotfload.min_luatex_version
+local actual   = { major, minor, revno or 0 }
+if actual [1] < minimum [1]
     or actual == minimum and actual [2] < minimum [2]
     or actual == minimum and actual [2] == minimum [2] and actual [3] < minimum [3]
-    then
-        texio.write_nl ("term and log",
-                        string.format ("\tFATAL ERROR\n\z
-                                        \tLuaotfload requires a Luatex version >= %d.%d.%d.\n\z
-                                        \tPlease update your TeX distribution!\n\n",
-                                       (unpack or table.unpack) (minimum)))
-        error "version check failed"
-    end
+then
+    texio.write_nl ("term and log",
+                    string.format ("\tFATAL ERROR\n\z
+                                    \tLuaotfload requires a Luatex version >= %d.%d.%d.\n\z
+                                    \tPlease update your TeX distribution!\n\n",
+                                   (unpack or table.unpack) (minimum)))
+    error "version check failed"
 end
 
 if status.safer_option ~= 0 then





More information about the latex3-commits mailing list