Browse Source

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.
master
dabura667 11 years ago
parent
commit
a171a29afb
  1. 2
      gui/qt/main_window.py

2
gui/qt/main_window.py

@ -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…
Cancel
Save