From cd1909dc2662718394f8982a8742ee1e78f6126e Mon Sep 17 00:00:00 2001 From: midichef <67946319+midichef@users.noreply.github.com> Date: Mon, 13 Jan 2025 15:20:12 -0800 Subject: [PATCH] [loaders-] use empty str for null_value in fixed width sheet --- visidata/loaders/fixed_width.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/visidata/loaders/fixed_width.py b/visidata/loaders/fixed_width.py index 6f74fb1ef..418791ed2 100644 --- a/visidata/loaders/fixed_width.py +++ b/visidata/loaders/fixed_width.py @@ -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