Multi-Word tags for DayOne Journals

Closes #274
This commit is contained in:
Manuel Ebert 2014-09-02 13:27:11 -07:00
parent 4301927b72
commit 6d12ccc579

View file

@ -65,7 +65,7 @@ class DayOne(Journal.Journal):
'Entry Text': entry.title + "\n" + entry.body, 'Entry Text': entry.title + "\n" + entry.body,
'Time Zone': str(tzlocal.get_localzone()), 'Time Zone': str(tzlocal.get_localzone()),
'UUID': entry.uuid, 'UUID': entry.uuid,
'Tags': [tag.strip(self.config['tagsymbols']) for tag in entry.tags] 'Tags': [tag.strip(self.config['tagsymbols']).replace("_", " ") for tag in entry.tags]
} }
plistlib.writePlist(entry_plist, filename) plistlib.writePlist(entry_plist, filename)
for entry in self._deleted_entries: for entry in self._deleted_entries: