From a57dc29a2723f46dd9bf721469744a44284a61bb Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 29 Apr 2013 15:04:25 +0200 Subject: make cache filename hotfix not break fontdbutil --- luaotfload-override.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/luaotfload-override.lua b/luaotfload-override.lua index 7ee9730..2b9ef8b 100644 --- a/luaotfload-override.lua +++ b/luaotfload-override.lua @@ -81,10 +81,12 @@ logs.names_report = function (mode, lvl, ...) end end ---- This will vanish as soon as Hans fixes it in data-con ---- https://github.com/lualatex/luaotfload/issues/17 +if containers then + --- This will vanish as soon as Hans fixes it in data-con + --- https://github.com/lualatex/luaotfload/issues/17 -containers.cleanname = function (name) - return (string.gsub(string.lower(name),"[^%w%d\128\255]+","-")) + containers.cleanname = function (name) + return (string.gsub(string.lower(name),"[^%w%d\128\255]+","-")) + end end -- vim:tw=71:sw=4:ts=4:expandtab -- cgit v1.2.3