Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Separate files needing GPL license
[csit.git]
/
resources
/
tools
/
presentation
/
pal_utils.py
diff --git
a/resources/tools/presentation/pal_utils.py
b/resources/tools/presentation/pal_utils.py
index
3efa00a
..
98d5837
100644
(file)
--- a/
resources/tools/presentation/pal_utils.py
+++ b/
resources/tools/presentation/pal_utils.py
@@
-315,17
+315,16
@@
def convert_csv_to_pretty_txt(csv_file_name, txt_file_name, delimiter=u","):
if txt_table is None:
txt_table = prettytable.PrettyTable(row)
else:
if txt_table is None:
txt_table = prettytable.PrettyTable(row)
else:
- txt_table.add_row(row)
- txt_table.align = u"r"
- txt_table.align[u"Test Case"] = u"l"
- txt_table.align[u"RCA"] = u"l"
- txt_table.align[u"RCA1"] = u"l"
- txt_table.align[u"RCA2"] = u"l"
- txt_table.align[u"RCA3"] = u"l"
-
+ txt_table.add_row(
+ [str(itm.replace(u"\u00B1", u"+-")) for itm in row]
+ )
if not txt_table:
return
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:
txt_file.write(str(txt_table))
if txt_file_name.endswith(u".txt"):
with open(txt_file_name, u"wt", encoding='utf-8') as txt_file:
txt_file.write(str(txt_table))