Report: Header of comparison tables
[csit.git] / resources / tools / presentation / pal_utils.py
index 1da3350..0c51bb2 100644 (file)
@@ -316,8 +316,9 @@ def convert_csv_to_pretty_txt(csv_file_name, txt_file_name, delimiter=u","):
                 txt_table = prettytable.PrettyTable(row)
             else:
                 txt_table.add_row(row)
-        txt_table.align[u"Test case"] = u"l"
-        txt_table.align[u"RCA"] = u"l"
+    txt_table.align = u"r"
+    txt_table.align[u"Test case"] = u"l"
+    txt_table.align[u"RCA"] = u"l"
     if txt_table:
         with open(txt_file_name, u"wt") as txt_file:
             txt_file.write(str(txt_table))