Permalink
Browse files

Merge pull request #4 from lukleh/master

indent_str did not get propagated to deeper levels
  • Loading branch information...
2 parents c0c29f2 + 41997cf commit 876a4fa73229d6b03826d0675b0905b4a564839f @TkTech committed Jul 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 pynbt/nbt.py
View
@@ -211,7 +211,7 @@ def pretty(self, indent=0, indent_str=' '):
indent_str * indent, self.name, len(self.value)))
t.append('{0}{{'.format(indent_str * indent))
for v in self.value:
- t.append(v.pretty(indent + 1))
+ t.append(v.pretty(indent + 1, indent_str))
t.append('{0}}}'.format(indent_str * indent))
return '\n'.join(t)
@@ -233,7 +233,7 @@ def pretty(self, indent=0, indent_str=' '):
indent_str * indent, self.name, len(self.value)))
t.append('{0}{{'.format(indent_str * indent))
for v in self.values():
- t.append(v.pretty(indent + 1))
+ t.append(v.pretty(indent + 1, indent_str))
t.append('{0}}}'.format(indent_str * indent))
return '\n'.join(t)

0 comments on commit 876a4fa

Please sign in to comment.