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:
parent
6a7d50d5c5
commit
a171a29afb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue