diff options
author | R David Murray <rdmurray@bitdance.com> | 2011-04-13 01:02:45 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2011-04-13 01:02:45 (GMT) |
commit | 3dd02d62c90a169a32fb38bed34249a6cf7e1638 (patch) | |
tree | 7ace2c16e725e311f9702ee6cc15de8ef81dc387 /Doc | |
parent | abdeeff3d1fa505fa1d49970cb7a70446f3e2b75 (diff) | |
download | cpython-3dd02d62c90a169a32fb38bed34249a6cf7e1638.zip cpython-3dd02d62c90a169a32fb38bed34249a6cf7e1638.tar.gz cpython-3dd02d62c90a169a32fb38bed34249a6cf7e1638.tar.bz2 |
#10019: Fix regression relative to 2.6: add newlines if indent=0
Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/json.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/json.rst b/Doc/library/json.rst index 1e8a87b..2bf242f 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -135,9 +135,9 @@ Basic Usage using the JavaScript equivalents (``NaN``, ``Infinity``, ``-Infinity``). If *indent* is a non-negative integer, then JSON array elements and object - members will be pretty-printed with that indent level. An indent level of 0 - will only insert newlines. ``None`` (the default) selects the most compact - representation. + members will be pretty-printed with that indent level. An indent level of 0, + or negative, will only insert newlines. ``None`` (the default) selects the + most compact representation. If *separators* is an ``(item_separator, dict_separator)`` tuple, then it will be used instead of the default ``(', ', ': ')`` separators. ``(',', |