# HG changeset patch # User Jeff Hammel # Date 1277171715 25200 # Node ID 677e2fe1239c6e10afd85c83bcd6996dfdb434a7 # Parent cec3a2b24e785c4f3ee19460854a73fba7c60a06 using a blank title will have the title be the filename diff -r cec3a2b24e78 -r 677e2fe1239c decoupage/formatters.py --- a/decoupage/formatters.py Mon Apr 19 17:13:52 2010 -0700 +++ b/decoupage/formatters.py Mon Jun 21 18:55:15 2010 -0700 @@ -132,6 +132,10 @@ for f in data['files']: if f['description'] and self.separator in f['description']: title, description = f['description'].split(self.separator, 1) + title = title.strip() + description = description.strip() + if not title: + title = f['name'] f['title'] = title f['description'] = description else: