From be4582efb0ea0c10de8d2055875ab333cd18b8b8 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 2 Dec 2022 11:32:45 -0300 Subject: [PATCH] [Internal BoM][Fixed] Problems when using HRTXT and no options - Also made the quick-start use a better column separator --- kibot/out_bom.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kibot/out_bom.py b/kibot/out_bom.py index c041033d..d574160b 100644 --- a/kibot/out_bom.py +++ b/kibot/out_bom.py @@ -683,6 +683,11 @@ class BoMOptions(BaseOptions): # If no options get the defaults self.csv = BoMCSV() self.csv.config(self) + # HRTXT options + if self.format == 'hrtxt' and isinstance(self.hrtxt, type): + # If no options get the defaults + self.hrtxt = BoMTXT() + self.hrtxt.config(self) # XLSX options if self.format == 'xlsx' and isinstance(self.xlsx, type): # If no options get the defaults @@ -966,6 +971,8 @@ class BoM(BaseOutput): # noqa: F821 gb['type'] = 'bom' gb['dir'] = os.path.join('BoM', subd) ops = {'format': fmt} + if fmt == 'HRTXT': + ops['hrtxt'] = {'separator': '|'} if group_fields: ops['group_fields'] = group_fields if join_fields: