From 128fcc10f4fd979b360090b9d1ffaa53cf97f3c2 Mon Sep 17 00:00:00 2001 From: Teemu Erkkola Date: Wed, 17 Oct 2018 13:26:36 +0300 Subject: [PATCH] Fix documentation style Split long documentation lines --- ckan/views/api.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ckan/views/api.py b/ckan/views/api.py index 3b462a413ae..63240460964 100644 --- a/ckan/views/api.py +++ b/ckan/views/api.py @@ -44,7 +44,8 @@ def _finish(status_int, response_data=None, :param status_int: The HTTP status code to return :type status_int: int :param response_data: The body of the response - :type response_data: object if content_type is `text` or `json`, a string otherwise + :type response_data: object if content_type is `text` or `json`, + a string otherwise :param content_type: One of `text`, `html` or `json`. Defaults to `text` :type content_type: string :param headers: Extra headers to serve with the response @@ -82,7 +83,8 @@ def _finish_ok(response_data=None, calling this method will prepare the response. :param response_data: The body of the response - :type response_data: object if content_type is `text` or `json`, a string otherwise + :type response_data: object if content_type is `text` or `json`, + a string otherwise :param content_type: One of `text`, `html` or `json`. Defaults to `json` :type content_type: string :param resource_location: Specify this if a new resource has just been