summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--otfl-font-xtx.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/otfl-font-xtx.lua b/otfl-font-xtx.lua
index 128219e..2fb9b7f 100644
--- a/otfl-font-xtx.lua
+++ b/otfl-font-xtx.lua
@@ -75,7 +75,7 @@ local function isstyle(s)
list.optsize = v:split("=")[2]
elseif v == "aat" or v == "icu" or v == "gr" then
logs.report("define font", "unsupported font option: %s", v)
- else
+ elseif not v:is_empty() then
list.style = v:gsub("[^%a%d]", "")
end
end