Skip to content

Commit

Permalink
Merge pull request #23 from secondlife/signal/fix-array-indent
Browse files Browse the repository at this point in the history
Fix array indentation of pretty xml
  • Loading branch information
bennettgoble authored Apr 2, 2024
2 parents c806ece + da987c9 commit acb55e3
Show file tree
Hide file tree
Showing 4 changed files with 4,014 additions and 3 deletions.
3 changes: 2 additions & 1 deletion llsd/serde_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def _ARRAY(self, v):
self._indent()
self._generate(item)
self._depth -= 1
self._indent()
self.stream.writelines([b'</array>', self._eol])
def _MAP(self, v):
self.stream.writelines([b'<map>', self._eol])
Expand Down Expand Up @@ -162,7 +163,7 @@ def _write(self, something):
self.stream.writelines([b'<?xml version="1.0" ?>', self._eol,
b'<llsd>', self._eol])
self._generate(something)
self.stream.write(b'</llsd>')
self.stream.write(b'</llsd>' + self._eol)


class LLSDXMLPrettyFormatter(LLSDXMLFormatter):
Expand Down
Loading

0 comments on commit acb55e3

Please sign in to comment.