Unverified Commit 43879508 authored by chillaranand's avatar chillaranand
Browse files

Ignored empty lines in fonts list file

parent 976a3bae
......@@ -78,7 +78,9 @@ if args.fonts is not None:
if pat=="": continue
fonts += sorted(glob.glob(pat))
elif args.fontlist is not None:
fonts = re.split(r'\s*\n\s*',open(args.fontlist).read())
with open(args.fontlist) as fh:
lines = (line.strip() for line in fh)
fonts = [line for line in lines if line]
print "use -f or -F arguments to specify fonts"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment