summaryrefslogtreecommitdiff
path: root/luaotfload-override.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-29 15:04:25 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-29 15:04:25 +0200
commita57dc29a2723f46dd9bf721469744a44284a61bb (patch)
tree677c97153fed1f033e9433b098191150fa70daf5 /luaotfload-override.lua
parent71f44e48c73c13d23431274f5886f9480a60fc24 (diff)
downloadluaotfload-a57dc29a2723f46dd9bf721469744a44284a61bb.tar.gz
make cache filename hotfix not break fontdbutil
Diffstat (limited to 'luaotfload-override.lua')
-rw-r--r--luaotfload-override.lua10
1 files 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