Fixed issue #2888. Now the behaviour of pprint when working with nested

structures follows the common sense (and works like in 2.5 and 3.0).
This commit is contained in:
Facundo Batista 2008-06-21 17:43:56 +00:00
parent 8e1c52ac0e
commit 2da91c375b
4 changed files with 17 additions and 2 deletions

View file

@ -194,7 +194,7 @@ class PrettyPrinter:
else:
write('(')
endchar = ')'
if self._indent_per_level > 1:
if self._indent_per_level > 1 and sepLines:
write((self._indent_per_level - 1) * ' ')
if length:
context[objid] = 1