]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-115986 Improve pprint docs formatting (GH-117401) (GH-121099)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 28 Jun 2024 16:21:56 +0000 (18:21 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Jun 2024 16:21:56 +0000 (18:21 +0200)
commit3a420de986efef4bae039e2aad9feaa26505d24b
treec657f7b99a75c62f2e4adffe6b51e31db01ff01b
parentb31f7e2e90a811f46f1934dd3604412d1381eede
[3.12] gh-115986 Improve pprint docs formatting (GH-117401) (GH-121099)

gh-115986 Improve pprint docs formatting (GH-117401)

* Move pprinter parameters description to the table

The change improves readability.
Suggested in the GHGH-116085 PR discussion.

* Make pprint doc with params markup

* Fix formatting
Indentation of code blocks made them nested
"Version changed" is better placed after the code block

* Fix formatting for tests

* fix code indentation for autotests

* Fix identation for autotests

* Remove duplication of the parameters' description

* Rearrange parameters description in a correct order

---------

(cherry picked from commit 0890ad7c024ccf29614849b6ffadcb92c0e91ce7)

Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Doc/library/pprint.rst