[YAML Exporter] fix starred spelling (#907)

* fix starred spelling
c.f. #835
This commit is contained in:
MinchinWeb 2020-04-11 12:43:56 -06:00
parent 7016c6925b
commit 65045cc332
2 changed files with 3 additions and 3 deletions

View file

@ -129,7 +129,7 @@ Feature: Exporting a Journal
""" """
title: I have an @idea: title: I have an @idea:
date: 2013-04-09 15:39 date: 2013-04-09 15:39
stared: False starred: False
tags: idea, journal tags: idea, journal
(1) write a command line @journal software (1) write a command line @journal software

View file

@ -104,10 +104,10 @@ class YAMLExporter(TextExporter):
# source directory is entry.journal.config['journal'] # source directory is entry.journal.config['journal']
# output directory is...? # output directory is...?
return "title: {title}\ndate: {date}\nstared: {stared}\ntags: {tags}\n{dayone} {body} {space}".format( return "title: {title}\ndate: {date}\nstarred: {starred}\ntags: {tags}\n{dayone} {body} {space}".format(
date=date_str, date=date_str,
title=entry.title, title=entry.title,
stared=entry.starred, starred=entry.starred,
tags=", ".join([tag[1:] for tag in entry.tags]), tags=", ".join([tag[1:] for tag in entry.tags]),
dayone=dayone_attributes, dayone=dayone_attributes,
body=newbody, body=newbody,