diff docs/api/api.rst @ 8935:ba64339f7937 stable

api docs: make examples more like 4 space indented
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 14 Oct 2022 14:02:15 +0200
parents 6f9dec2295dc
children ac5525c48f0a
line wrap: on
line diff
--- a/docs/api/api.rst	Wed Jan 06 01:08:12 2021 +0100
+++ b/docs/api/api.rst	Fri Oct 14 14:02:15 2022 +0200
@@ -575,16 +575,16 @@
                 "description" :      "<description>",
                 "landing_rev":       "<landing_rev>",
                 "last_changeset":    {
-                                       "author":   "<full_author>",
-                                       "date":     "<date_time_of_commit>",
-                                       "message":  "<commit_message>",
-                                       "raw_id":   "<raw_id>",
-                                       "revision": "<numeric_revision>",
-                                       "short_id": "<short_id>"
+                                         "author":   "<full_author>",
+                                         "date":     "<date_time_of_commit>",
+                                         "message":  "<commit_message>",
+                                         "raw_id":   "<raw_id>",
+                                         "revision": "<numeric_revision>",
+                                         "short_id": "<short_id>"
                                      },
                 "owner":             "<repo_owner>",
                 "fork_of":           "<name_of_fork_parent>",
-                "members" :     [
+                "members" :   [
                                   {
                                     "type":        "user",
                                     "user_id" :    "<user_id>",
@@ -609,8 +609,8 @@
                                     "permission" : "repository.(read|write|admin)"
                                   },

-                                ],
-                 "followers":   [
+                              ],
+                "followers":  [
                                   {
                                     "user_id" :     "<user_id>",
                                     "username" :    "<username>",
@@ -626,20 +626,20 @@
                                     "last_login":   "<last_login>",
                                   },

-                                ],
-                 <if with_revision_names == True>
-                 "tags": {
+                              ],
+                <if with_revision_names == True>
+                "tags": {
                             "<tagname>": "<raw_id>",
                             ...
-                         },
-                 "branches": {
+                        },
+                "branches": {
                             "<branchname>": "<raw_id>",
                             ...
-                         },
-                 "bookmarks": {
+                        },
+                "bookmarks": {
                             "<bookmarkname>": "<raw_id>",
                             ...
-                         },
+                        },
                 <if with_pullrequests == True>
                 "pull_requests": [
                   {