mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Fix JSON export
This commit is contained in:
parent
6a53da5efd
commit
f4dfecb62f
1 changed files with 1 additions and 2 deletions
|
@ -20,14 +20,13 @@ extension: json
|
|||
{% block entry %}
|
||||
{
|
||||
"title": "{{ entry.title }}",
|
||||
"body": "{{ entry.body }}",
|
||||
"body": "{{ entry.body.replace("\n", "\\n") }}",
|
||||
"date": "{{ entry.date.strftime('%Y-%m-%d') }}",
|
||||
"time": "{{ entry.date.strftime('%H:%M') }}",
|
||||
{% if entry.uuid %}
|
||||
"uuid": "{{ entry.uuid }}",
|
||||
{% endif %}
|
||||
"starred": {{ "true" if entry.starred else "false" }}
|
||||
}
|
||||
}
|
||||
{% endblock %}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue