diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2014-04-24 23:42:35 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2014-04-24 23:42:35 +0200 |
commit | 2cdf631f45646e7e2f4a5cf05045cc6f5167d51e (patch) | |
tree | 340f9d004c7e9ce76acf7d2ab04583af6a20542e /src | |
parent | b1856d2be074479aac62f6e89e1fafabb809e590 (diff) | |
download | luaotfload-2cdf631f45646e7e2f4a5cf05045cc6f5167d51e.tar.gz |
[main] trivial: improve Luatex minimum version test
Diffstat (limited to 'src')
-rw-r--r-- | src/luaotfload-main.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua index a752c9a..2e65788 100644 --- a/src/luaotfload-main.lua +++ b/src/luaotfload-main.lua @@ -98,18 +98,18 @@ luaotfload.log.tex = { --doc]]-- -local luatex_version = 76 +local min_luatex_version = 76 -if tex.luatexversion < luatex_version then - warning("LuaTeX v%.2f is old, v%.2f is recommended.", - tex.luatexversion/100, - luatex_version /100) +if tex.luatexversion < min_luatex_version then + warning ("LuaTeX v%.2f is old, v%.2f or later is recommended.", + tex.luatexversion / 100, + min_luatex_version / 100) --- we install a fallback for older versions as a safety if not node.end_of_math then - local math_t = node.id"math" + local math_t = node.id "math" local traverse_nodes = node.traverse_id node.end_of_math = function (n) - for n in traverse_nodes(math_t, n.next) do + for n in traverse_nodes (math_t, n.next) do return n end end |