aboutsummaryrefslogtreecommitdiff
path: root/gn3/csvcmp.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/csvcmp.py')
-rw-r--r--gn3/csvcmp.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gn3/csvcmp.py b/gn3/csvcmp.py
index 360a101..eef64b5 100644
--- a/gn3/csvcmp.py
+++ b/gn3/csvcmp.py
@@ -92,6 +92,10 @@ def fill_csv(csv_text, width, value="x"):
if line.startswith("Strain") or line.startswith("#"):
data.append(line)
elif line:
+ _n = line.split(",")
+ for i, val in enumerate(_n):
+ if not val.strip():
+ _n[i] = value
data.append(
- ",".join((_n:=line.split(",")) + [value] * (width - len(_n))))
+ ",".join(_n + [value] * (width - len(_n))))
return "\n".join(data)