[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: More useful quoting in reload messages (7263134)
Marcel Fabian Krüger
tex at 2krueger.de
Fri Jun 5 16:07:06 CEST 2020
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/7263134416cf4b49ea760efa9dd438d70f30d809
>---------------------------------------------------------------
commit 7263134416cf4b49ea760efa9dd438d70f30d809
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Mon May 25 14:03:39 2020 +0200
More useful quoting in reload messages
>---------------------------------------------------------------
7263134416cf4b49ea760efa9dd438d70f30d809
src/luaotfload-database.lua | 6 +++---
src/luaotfload-resolvers.lua | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index 062ce56..4b9221f 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -754,7 +754,7 @@ lookup_font_file = function (filename)
end
if not fonts_reloaded and config.luaotfload.db.update_live == true then
- return reload_db (stringformat ("File not found: %s.", filename),
+ return reload_db (stringformat ("File not found: %q.", filename),
lookup_font_file,
filename)
end
@@ -1242,7 +1242,7 @@ lookup_font_name = function (specification)
if not resolved then
if not fonts_reloaded and config.luaotfload.db.update_live == true then
- return reload_db (stringformat ("Font %s not found.",
+ return reload_db (stringformat ("Font %q not found.",
specification.name or "<?>"),
lookup_font_name,
specification)
@@ -1291,7 +1291,7 @@ reload_db = function (why, caller, ...)
local formats = tableconcat (namedata.meta.formats, ",")
logreport ("both", 0, "db",
- "Reload initiated (formats: %s); reason: %q.",
+ "Reload initiated (formats: %s); reason: %s",
formats, why)
set_font_filter (formats)
diff --git a/src/luaotfload-resolvers.lua b/src/luaotfload-resolvers.lua
index 7e8d15b..99638e9 100644
--- a/src/luaotfload-resolvers.lua
+++ b/src/luaotfload-resolvers.lua
@@ -292,7 +292,7 @@ return function()
end
logreport ("log", 5, "resolvers", "installing font resolvers", name)
local request_resolvers = fonts.definers.resolvers
- for k, _ in pairs(resolvers) do
+ for k, _ in pairs(request_resolvers) do
request_resolvers[k] = nil
end
setmetatable(request_resolvers, {__index = function(t, n)
More information about the latex3-commits
mailing list.