We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b3e7e1 commit 87a048dCopy full SHA for 87a048d
1 file changed
Lib/plistlib.py
@@ -376,7 +376,7 @@ def write_value(self, value):
376
def write_bytes(self, data):
377
self.begin_element("data")
378
self._indent_level -= 1
379
- wrapcol = 76 - len(self.indent.expandtabs()) * self._indent_level
+ wrapcol = 76 - len((self.indent * self._indent_level).expandtabs())
380
wrapcol = max(16, wrapcol)
381
encoded = binascii.b2a_base64(data, wrapcol=wrapcol, newline=False)
382
for line in encoded.split(b"\n"):
0 commit comments