Skip to content

Commit

Permalink
update json doc formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
geier committed Oct 31, 2023
1 parent 2f93ccd commit e73ec3a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions doc/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,7 @@ Several options are common to almost all of :program:`khal`'s commands
Works similar to :option:`--format`, but instead of defining a format string a JSON
object is created for each specified field. The matching events are collected into
a JSON array. This option accepts the following subset of :option:`--format`
template options

::
template options::

title, description, uid, start, start-long, start-date,
start-date-long, start-time, end, end-long, end-date,
Expand All @@ -233,7 +231,7 @@ Several options are common to almost all of :program:`khal`'s commands
Below is an example command which prints a JSON list of objects containing the title and
description of all events today.

::
.. code-block:: console
khal list --json title --json description
Expand Down Expand Up @@ -275,8 +273,7 @@ Commands
list
****
shows all events scheduled for a given date (or datetime) range, with custom
formatting:
::
formatting::

khal list [-a CALENDAR ... | -d CALENDAR ...]
[--format FORMAT] [--json FIELD ...] [--day-format DAYFORMAT]
Expand Down

0 comments on commit e73ec3a

Please sign in to comment.