Skip to content

Commit

Permalink
Match any non-whitespace in aspell output (#91)
Browse files Browse the repository at this point in the history
aspell (version 0.60.7) trims leading and trailing punctuation
  • Loading branch information
agitter committed May 4, 2020
1 parent 3c870cb commit 13c3fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spellcheck/spellcheck.lua
Expand Up @@ -30,7 +30,7 @@ local function run_spellcheck(lang)
end
local inp = table.concat(keys, '\n')
local outp = pandoc.pipe('aspell', {'list','-l',lang}, inp)
for w in string.gmatch(outp, "(%a*)\n") do
for w in string.gmatch(outp, "([%S]+)\n") do
io.write(w)
if lang ~= deflang then
io.write("\t[" .. lang .. "]")
Expand Down

0 comments on commit 13c3fa7

Please sign in to comment.