From 65045cc33244a35d7630509b1f1a1be325cbfa64 Mon Sep 17 00:00:00 2001 From: MinchinWeb Date: Sat, 11 Apr 2020 12:43:56 -0600 Subject: [PATCH] [YAML Exporter] fix starred spelling (#907) * fix starred spelling c.f. #835 --- features/exporting.feature | 2 +- jrnl/plugins/yaml_exporter.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/features/exporting.feature b/features/exporting.feature index 5705fda1..89abfd0e 100644 --- a/features/exporting.feature +++ b/features/exporting.feature @@ -129,7 +129,7 @@ Feature: Exporting a Journal """ title: I have an @idea: date: 2013-04-09 15:39 - stared: False + starred: False tags: idea, journal (1) write a command line @journal software diff --git a/jrnl/plugins/yaml_exporter.py b/jrnl/plugins/yaml_exporter.py index 430b68f7..6a550b0c 100644 --- a/jrnl/plugins/yaml_exporter.py +++ b/jrnl/plugins/yaml_exporter.py @@ -104,10 +104,10 @@ class YAMLExporter(TextExporter): # source directory is entry.journal.config['journal'] # 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, title=entry.title, - stared=entry.starred, + starred=entry.starred, tags=", ".join([tag[1:] for tag in entry.tags]), dayone=dayone_attributes, body=newbody,