Fix the line deliminator in csv

currently the csv output is `\r\r\n` where the line terminator is `\r\n`
and the extra `\r` is probably being inserted from writing a dict to
csv. I get around this by changing the line terminator to `\n` to output
`\r\n` which will make it compatible with most spreadsheet apps.
This commit is contained in:
dabura667 2015-01-25 12:22:40 +09:00
parent 6a7d50d5c5
commit a171a29afb
1 changed files with 1 additions and 1 deletions

View File

@ -2507,7 +2507,7 @@ class ElectrumWindow(QMainWindow):
with open(fileName, "w+") as f:
if is_csv:
transaction = csv.writer(f)
transaction = csv.writer(f, lineterminator='\n')
transaction.writerow(["transaction_hash","label", "confirmations", "value", "fee", "balance", "timestamp"])
for line in lines:
transaction.writerow(line)