diff options
Diffstat (limited to 'src/common/xmpp/simplexml.py')
-rw-r--r-- | src/common/xmpp/simplexml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/xmpp/simplexml.py b/src/common/xmpp/simplexml.py index 0e4d3219f..515da3ba0 100644 --- a/src/common/xmpp/simplexml.py +++ b/src/common/xmpp/simplexml.py @@ -129,7 +129,7 @@ class Node(object): cnt=cnt+1 if not fancy and (len(self.data)-1) >= cnt: s = s + XMLescape(self.data[cnt]) elif (len(self.data)-1) >= cnt: s = s + XMLescape(self.data[cnt].strip()) - if not self.kids and s[-1:]=='>': + if not self.kids and s.endswith('>'): s=s[:-1]+' />' if fancy: s = s + "\n" else: |