aboutsummaryrefslogtreecommitdiff
path: root/unpixelterm.py
diff options
context:
space:
mode:
Diffstat (limited to 'unpixelterm.py')
-rwxr-xr-xunpixelterm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/unpixelterm.py b/unpixelterm.py
index e1af6d1..47d05cb 100755
--- a/unpixelterm.py
+++ b/unpixelterm.py
@@ -50,10 +50,10 @@ def unpixelterm(text):
k,v = parts
if k not in ['WIDTH', 'HEIGHT']:
d[k.lower()] = d.get(k.lower(), []) + [v]
- elif l != '':
+ else:
comment.append(l)
if comment:
- d['comment'] = d.get('comment', []) + comment
+ d['comment'] = d.get('comment', []) + ['\n'.join(comment)]
metadata.update(d)
lines[first:] = lines[first+1+second+1:]
except: