Bug 311010

lp bug: https://launchpad.net/bugs/311010 fixed

bzr revid: jvo@tinyerp.com-20081224090339-lrfj3eksa3jdymhy
This commit is contained in:
Jay (Open ERP) 2008-12-24 14:33:39 +05:30
parent ba8937a200
commit fb231cda53
1 changed files with 3 additions and 1 deletions

View File

@ -292,8 +292,10 @@ class rml_parse(object):
pp=self._node
self._node = pp
lst=''
if type(text)==type(''):
if isinstance(text,(str,unicode)):
lst = text.split('\n')
# lst = str(text).split('\n') # This is also acceptable, isn't it?
if lst and (not len(lst)):
return None
nodes = []