From e498de3eb895a89e890c6e9ee4c792fc9d7faa90 Mon Sep 17 00:00:00 2001 From: Dmitrijs Ledkovs Date: Wed, 9 Nov 2011 16:13:36 +0000 Subject: [PATCH] Correct newline usage --- account_banking_uk_hsbc/mt940_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_banking_uk_hsbc/mt940_parser.py b/account_banking_uk_hsbc/mt940_parser.py index bad3984bc..0243ca679 100644 --- a/account_banking_uk_hsbc/mt940_parser.py +++ b/account_banking_uk_hsbc/mt940_parser.py @@ -128,9 +128,9 @@ class HSBCParser(object): if len(line) <= 1: continue if line[0] == ':' and len(line) > 1: - records.append(line[:-1]) + records.append(line) else: - records[-1] = records[-1] + '\n' + line[:-1] + records[-1] = '\n'.join([records[-1], line]) output = [] for rec in records: