From 91c0dd5c82a8d8eb8b00f1e254d61dae3bf5d8c6 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sun, 1 Apr 2012 11:27:51 +0200 Subject: [PATCH] remove double spaces from hsbc raw labels --- modules/hsbc/pages/accounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hsbc/pages/accounts.py b/modules/hsbc/pages/accounts.py index 3f120010..603acfec 100644 --- a/modules/hsbc/pages/accounts.py +++ b/modules/hsbc/pages/accounts.py @@ -75,6 +75,6 @@ class HistoryPage(BasePage): for m in re.finditer(r"CL\((\d+),'(.+)','(.+)','(.+)','([\d -\.,]+)','([\d -\.,]+)','\d+','\d+','[\w\s]+'\);", script.text, flags=re.MULTILINE): op = Transaction(m.group(1)) - op.parse(date=m.group(3), raw=m.group(4)) + op.parse(date=m.group(3), raw=re.sub(u'[ ]+', u' ', m.group(4).replace(u'\n', u' '))) op.set_amount(m.group(5)) yield op