Bugfixed Format() method issue of reports.

bzr revid: jvo@tinyerp.com-20080926102229-6ldy5j1tz07t849a
This commit is contained in:
Jay Vora 2008-09-26 15:52:29 +05:30
parent d773097540
commit 2e7f1a4d77
1 changed files with 10 additions and 6 deletions

View File

@ -292,13 +292,17 @@ class rml_parse(object):
oldtag = self.tag
self._node.data = ''
node = self._find_parent(self._node, [oldtag])
pp = node.parentNode
ns = node.nextSibling
pp.removeChild(node)
if node:
pp = node.parentNode
ns = node.nextSibling
pp.removeChild(node)
else:
pp=self._node
self._node = pp
lst = text.split('\n')
if not len(lst):
lst=''
if type(text)==type(''):
lst = text.split('\n')
if lst and (not len(lst)):
return None
nodes = []
for i in range(len(lst)):