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
|
oldtag = self.tag
|
||||||
self._node.data = ''
|
self._node.data = ''
|
||||||
node = self._find_parent(self._node, [oldtag])
|
node = self._find_parent(self._node, [oldtag])
|
||||||
|
if node:
|
||||||
pp = node.parentNode
|
pp = node.parentNode
|
||||||
ns = node.nextSibling
|
ns = node.nextSibling
|
||||||
pp.removeChild(node)
|
pp.removeChild(node)
|
||||||
|
else:
|
||||||
|
pp=self._node
|
||||||
self._node = pp
|
self._node = pp
|
||||||
lst = text.split('\n')
|
lst=''
|
||||||
if not len(lst):
|
if type(text)==type(''):
|
||||||
|
lst = text.split('\n')
|
||||||
|
if lst and (not len(lst)):
|
||||||
return None
|
return None
|
||||||
nodes = []
|
nodes = []
|
||||||
for i in range(len(lst)):
|
for i in range(len(lst)):
|
||||||
|
|
Loading…
Reference in New Issue