Use Entry.pprint for display, str(Entry) for writing.

This commit is contained in:
Manuel Ebert 2012-05-31 11:22:54 +02:00
parent fea171170a
commit e21cdd7e69

View file

@ -135,7 +135,7 @@ class Journal:
def __str__(self): def __str__(self):
"""Prettyprints the journal's entries""" """Prettyprints the journal's entries"""
sep = "\n" sep = "\n"
pp = sep.join([str(e) for e in self.entries]) pp = sep.join([e.pprint() for e in self.entries])
if self.config['highlight']: # highlight tags if self.config['highlight']: # highlight tags
if self.search_tags: if self.search_tags:
for tag in self.search_tags: for tag in self.search_tags: