summaryrefslogtreecommitdiff
path: root/otfl-font-nms.lua
diff options
context:
space:
mode:
Diffstat (limited to 'otfl-font-nms.lua')
-rw-r--r--otfl-font-nms.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index a8ec08a..12da443 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -465,9 +465,12 @@ local function read_blacklist()
if files and type(files) == "table" then
for _,v in next, files do
for line in io.lines(v) do
+ line = line:strip() -- to get rid of lines like " % foo"
if line:find("^%%") or line:is_empty() then
-- comment or empty line
else
+ line = line:split("%")[1]
+ line = line:strip()
if trace_search then
logs.report("blacklisted file: %s", line)
end