Skip to content

Commit 690abe7

Browse files
committed
Do not write NAME if it is empty
1 parent 27fc1e9 commit 690abe7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ofxparse/ofxprinter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ def writeTrn(self, trn, tabs=5):
9393
trn.checknum
9494
), tabs=tabs)
9595

96-
self.writeLine("<NAME>{}".format(trn.payee), tabs=tabs)
96+
if len(trn.payee) > 0:
97+
self.writeLine("<NAME>{}".format(trn.payee), tabs=tabs)
9798

9899
if len(trn.memo.strip()) > 0:
99100
self.writeLine("<MEMO>{}".format(trn.memo), tabs=tabs)

0 commit comments

Comments
 (0)