From d56f4140fb3c0cd389ad1e64ed452dadb968c2c3 Mon Sep 17 00:00:00 2001 From: Manuel Ebert Date: Wed, 17 Jul 2013 18:13:51 +0200 Subject: [PATCH] Fixes bug in tag export --- jrnl/Entry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jrnl/Entry.py b/jrnl/Entry.py index 1d475501..a8ec0557 100644 --- a/jrnl/Entry.py +++ b/jrnl/Entry.py @@ -16,7 +16,7 @@ class Entry: def parse_tags(self): fulltext = " ".join([self.title, self.body]).lower() tags = re.findall(r'(?u)([{}]\w+)'.format(self.journal.config['tagsymbols']), fulltext, re.UNICODE) - self.tags = set(tags) + return set(tags) def __unicode__(self): """Returns a string representation of the entry to be written into a journal file.""" @@ -57,7 +57,7 @@ class Entry: ) def __repr__(self): - return str(self) + return "".format(self.title.strip(), self.date.strftime("%Y-%m-%d %H:%M")) def to_dict(self): return {