Skip to content

Commit f842bcb

Browse files
committed
Filter empty values from selected icons (#9)
1 parent 4fcf519 commit f842bcb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

icon_font_to_png/command_line.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ def run(arguments):
133133
if given_filename.lower().endswith('.png'):
134134
given_filename = given_filename[:-4]
135135

136+
# Some fonts have empty values
137+
# (prefix only - which we remove - for common styles)
138+
selected_icons = list(filter(None, selected_icons))
139+
136140
# Commence exporting
137141
for icon in selected_icons:
138142
if len(selected_icons) > 1:

0 commit comments

Comments
 (0)