mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-11 09:08:32 +02:00
parent
04811405dc
commit
4513609954
1 changed files with 2 additions and 4 deletions
|
@ -68,12 +68,10 @@ class MarkdownExporter(TextExporter):
|
|||
for e in journal.entries:
|
||||
if not e.date.year == year:
|
||||
year = e.date.year
|
||||
out.append(str(year))
|
||||
out.append("=" * len(str(year)) + "\n")
|
||||
out.append("# " + str(year))
|
||||
if not e.date.month == month:
|
||||
month = e.date.month
|
||||
out.append(e.date.strftime("%B"))
|
||||
out.append('-' * len(e.date.strftime("%B")) + "\n")
|
||||
out.append("## " + e.date.strftime("%B"))
|
||||
out.append(cls.export_entry(e, False))
|
||||
result = "\n".join(out)
|
||||
return result
|
||||
|
|
Loading…
Add table
Reference in a new issue