Skip to content

Commit

Permalink
[loaders-] use empty str for null_value in fixed width sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
midichef committed Jan 16, 2025
1 parent 70699c1 commit cd1909d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions visidata/loaders/fixed_width.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,5 @@ def save_fixed(vd, p, *vsheets):
for col, val in dispvals.items():
fp.write(('{0:%s%s.%s} ' % ('>' if vd.isNumeric(col) else '<', widths[col], widths[col])).format(val))
fp.write('\n')

FixedWidthColumnsSheet.options.null_value = '' # the file format cannot contain None, so use empty string instead

0 comments on commit cd1909d

Please # to comment.