From 12711ed06b70a69b2cc517154c0c4b04c93ba15b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 9 Feb 2022 20:59:18 +0000 Subject: luafindfont (9feb22) git-svn-id: svn://tug.org/texlive/trunk@61959 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/luafindfont/luafindfont.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/scripts') diff --git a/Master/texmf-dist/scripts/luafindfont/luafindfont.lua b/Master/texmf-dist/scripts/luafindfont/luafindfont.lua index fc7a6b6577e..2008194bb7f 100755 --- a/Master/texmf-dist/scripts/luafindfont/luafindfont.lua +++ b/Master/texmf-dist/scripts/luafindfont/luafindfont.lua @@ -1,5 +1,4 @@ #!/usr/bin/env texlua --- % $Id: luafindfont.lua 330 2021-11-28 13:47:56Z herbert $ ----------------------------------------------------------------------- -- FILE: luafindfont.lua @@ -8,7 +7,7 @@ -- AUTHOR: Herbert Voß (C) 2021-11-27 ----------------------------------------------------------------------- luafindfont = luafindfont or { } - local version = 0.05 + local version = 0.06 luafindfont.version = version --[[ @@ -55,7 +54,7 @@ local i = 1 while i <= #arg do if arg[i] == "-h" or arg[i] == "--help" then print("Version "..version..", Copyright 2021 by Herbert Voß") - print([[Syntax: luafintfont [options] + print([[Syntax: luafindfont [options] By default the Lua program 'luafindfont' creates a list of the fonts which have in its names the given string. @@ -123,7 +122,7 @@ if #font_str == 1 then font_str[2] = "" end local luaVersion = _VERSION print("We are using "..luaVersion) -if #font_str > 1 then +if font_str[2] ~= "" then print('Looking for font \"'..font_str[1]..' & '..font_str[2]..'\"') else print('Looking for font \"'..font_str[1]..'\"') -- cgit v1.2.3