mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-29 22:16:13 +02:00
parent
b2542db5e5
commit
849dc89557
2 changed files with 6 additions and 2 deletions
|
@ -17,12 +17,12 @@ class TextExporter(BaseExporter):
|
|||
@classmethod
|
||||
def export_entry(cls, entry):
|
||||
"""Returns a unicode representation of a single entry."""
|
||||
return u.__unicode__()
|
||||
return entry.__unicode__()
|
||||
|
||||
@classmethod
|
||||
def export_journal(cls, journal):
|
||||
"""Returns a unicode representation of an entire journal."""
|
||||
return journal.pprint()
|
||||
return "\n".join(cls.export_entry(entry) for entry in journal)
|
||||
|
||||
@classmethod
|
||||
def write_file(cls, journal, path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue