Skip to content

Commit

Permalink
Update MyPrettyTable alignment to left-align all fields by default
Browse files Browse the repository at this point in the history
  • Loading branch information
nisedo committed Feb 21, 2025
1 parent 88fdafb commit bd05062
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions slither/utils/myprettytable.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ def __init__(
self._options: Dict = {}
if pretty_align:
self._options["set_alignment"] = []
self._options["set_alignment"] += [(field_names[0], "l")]
for field_name in field_names[1:]:
self._options["set_alignment"] += [(field_name, "r")]
for field_name in field_names:
self._options["set_alignment"] += [(field_name, "l")]
else:
self._options["set_alignment"] = []

Expand Down

0 comments on commit bd05062

Please sign in to comment.