Make YAML exporter "pure"

Removes Markdown header formatting and changes export file extension to "yaml"

# Conflicts:
#	jrnl/plugins/yaml_exporter.py
This commit is contained in:
MinchinWeb 2021-10-11 11:05:36 -06:00
parent 4d3e6dd47d
commit 9c9073e52f

View file

@ -129,9 +129,9 @@ class PelicanMarkdownExporter(TextExporter):
@classmethod @classmethod
def export_journal(cls, journal): def export_journal(cls, journal):
"""Returns an error, as YAML export requires a directory as a target.""" """Returns an error, as Pelican Markdown export requires a directory as a target."""
print( print(
"{}ERROR{}: YAML export must be to individual files. Please specify a directory to export to.".format( "{}ERROR{}: Pelican Markdown export must be to individual files. Please specify a directory to export to.".format(
ERROR_COLOR, RESET_COLOR ERROR_COLOR, RESET_COLOR
), ),
file=sys.stderr, file=sys.stderr,