From 2668c9eb51bda60075c4c599d62bc8e31b25941b Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 12 Jul 2014 21:14:37 +0200 Subject: [conf] allow spaces in formats specification List items are now stripped of leading and trailing spaces before building the formats list. --- src/luaotfload-configuration.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/luaotfload-configuration.lua') diff --git a/src/luaotfload-configuration.lua b/src/luaotfload-configuration.lua index 937b050..3522bef 100644 --- a/src/luaotfload-configuration.lua +++ b/src/luaotfload-configuration.lua @@ -27,6 +27,7 @@ local luaotfloadstatus = require (status_file) local string = string local stringsub = string.sub local stringexplode = string.explode +local stringstrip = string.strip local table = table local tableappend = table.append @@ -278,7 +279,7 @@ local option_spec = { local known = { } local result = { } for i = 1, #fields do - local field = fields[i] + local field = stringstrip (fields[i]) if known[field] ~= true then --- yet unknown, tag as seen known[field] = true @@ -287,7 +288,8 @@ local option_spec = { result[#result + 1] = field else logreport ("both", 4, "conf", - "Invalid font format identifier %q, ignoring.", field) + "Invalid font format identifier %q, ignoring.", + field) end end end -- cgit v1.2.3