mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-18 20:18:32 +02:00
Since we're implementing a plugin system that relies on implicit namespacing, we should remove these files so that they don't confuse and muddle our virtual envs (like the ones we use to run tests). Also, they're not longer needed as of Python 3.3. PEP 420 says: Allowing implicit namespace packages means that the requirement to provide an __init__.py file can be dropped completely...
20 lines
482 B
Python
20 lines
482 B
Python
#!/usr/bin/env python
|
|
# encoding: utf-8
|
|
# Copyright (C) 2012-2021 jrnl contributors
|
|
# License: https://www.gnu.org/licenses/gpl-3.0.html
|
|
|
|
from jrnl.plugins.base import BaseExporter
|
|
|
|
from jrnl.__version__ import __version__
|
|
|
|
|
|
class Exporter(BaseExporter):
|
|
"""Short export -- i.e. single line date and title"""
|
|
|
|
names = ["short"]
|
|
extension = "txt"
|
|
version = __version__
|
|
|
|
@classmethod
|
|
def export_journal(cls, journal):
|
|
return journal.pprint(short=True)
|