- txt_table.add_row(row)
- txt_table.align[u"Test case"] = u"l"
- if txt_table:
- with open(txt_file_name, u"w") as txt_file:
+ txt_table.add_row(
+ [str(itm.replace(u"\u00B1", u"+-")) for itm in row]
+ )
+ if not txt_table:
+ return
+
+ txt_table.align = u"r"
+ for itm in (u"Test Case", u"Build", u"Version", u"VPP Version"):
+ txt_table.align[itm] = u"l"
+
+ if txt_file_name.endswith(u".txt"):
+ with open(txt_file_name, u"wt", encoding='utf-8') as txt_file: