Bugfixed Format() method issue of reports.
bzr revid: jvo@tinyerp.com-20080926102229-6ldy5j1tz07t849a
This commit is contained in:
parent
d773097540
commit
2e7f1a4d77
|
@ -292,13 +292,17 @@ class rml_parse(object):
|
|||
oldtag = self.tag
|
||||
self._node.data = ''
|
||||
node = self._find_parent(self._node, [oldtag])
|
||||
|
||||
if node:
|
||||
pp = node.parentNode
|
||||
ns = node.nextSibling
|
||||
pp.removeChild(node)
|
||||
else:
|
||||
pp=self._node
|
||||
self._node = pp
|
||||
lst=''
|
||||
if type(text)==type(''):
|
||||
lst = text.split('\n')
|
||||
if not len(lst):
|
||||
if lst and (not len(lst)):
|
||||
return None
|
||||
nodes = []
|
||||
for i in range(len(lst)):
|
||||
|
|
Loading…
Reference in New Issue