mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-18 03:58:32 +02:00
Fix indentation
This commit is contained in:
parent
18f3e5df44
commit
1e582fb75b
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ def export(journal, format, output=None):
|
|||
def write_files(journal, path, format):
|
||||
"""Turns your journal into separate files for each entry.
|
||||
Format should be either json, md, txt or yaml."""
|
||||
extention = 'md' if format == 'yaml' else format
|
||||
extention = 'md' if format == 'yaml' else format
|
||||
make_filename = lambda entry: e.date.strftime("%Y-%m-%d_{0}.{1}".format(slugify(u(e.title)), extention))
|
||||
for e in journal.entries:
|
||||
if format == 'json':
|
||||
|
|
Loading…
Add table
Reference in a new issue