From 17a33370022626b11ce7fc48ed7633503f696aa9 Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Wed, 18 Mar 2026 07:46:07 +0800 Subject: [PATCH 1/2] Fix #146061 --- Doc/library/json.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 4a26419e65bee4..6578544976f2f4 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -211,7 +211,9 @@ Basic Usage a string (such as ``"\t"``) is used to indent each level. If zero, negative, or ``""`` (the empty string), only newlines are inserted. - If ``None`` (the default), the most compact representation is used. + If ``None`` (the default), no pretty printing is done, and a + compact representation is used, though a singular space is + still left after the separators. :type indent: int | str | None :param separators: From a5c0e64bc0eb3c472c6b400f0374eaa77bd155a9 Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Wed, 18 Mar 2026 20:12:43 +0800 Subject: [PATCH 2/2] Remove trailing space Co-authored-by: Pieter Eendebak --- Doc/library/json.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 6578544976f2f4..e01faa63f07f93 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -212,7 +212,7 @@ Basic Usage If zero, negative, or ``""`` (the empty string), only newlines are inserted. If ``None`` (the default), no pretty printing is done, and a - compact representation is used, though a singular space is + compact representation is used, though a singular space is still left after the separators. :type indent: int | str | None