correctly parses the 'Sa shopping list' string in description

This commit is contained in:
Romain Bignon 2010-08-03 21:00:50 +02:00
commit d4712cb693

View file

@ -312,6 +312,8 @@ class ProfilePage(PageBase):
description += ''.join(c.data.split('\n')) # to strip \n
elif hasattr(c, 'tagName') and c.tagName == 'br':
description += '\n'
elif hasattr(c, 'tagName') and c.tagName == 'i':
description += ''.join(c.childNodes[0].data.split('\n'))
self.description = description