diff options
author | Tibor Frank <tifrank@cisco.com> | 2020-04-14 15:57:57 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2020-04-15 10:31:43 +0200 |
commit | 3f2ecafbe60b3664ab7b18ecfe8e4acb46a3cd3b (patch) | |
tree | dc495e59f203fb282509319a5098554d7870688f /resources/tools/presentation/pal_utils.py | |
parent | 4f4441a7ae175cda9ac55dc23a94099617bea293 (diff) |
PAL: Integrate new comp tables 2
Change-Id: Id7267f5ab13a362894c5fe5a2ae40d51d4b5a36d
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/pal_utils.py')
-rw-r--r-- | resources/tools/presentation/pal_utils.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/resources/tools/presentation/pal_utils.py b/resources/tools/presentation/pal_utils.py index 3efa00af2c..20bf9a65c4 100644 --- a/resources/tools/presentation/pal_utils.py +++ b/resources/tools/presentation/pal_utils.py @@ -315,13 +315,11 @@ 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: - txt_table.add_row(row) + txt_table.add_row( + [str(itm.replace(u"\u00B1", u"+-")) for itm in 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" if not txt_table: return |