Skip to content

Commit

Permalink
Update src/prettytable/prettytable.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Apr 28, 2024
1 parent 9271d30 commit 7d2cf38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prettytable/prettytable.py
Original file line number Diff line number Diff line change
Expand Up @@ -1888,7 +1888,7 @@ def _stringify_title(self, title, options):
bits.append(endpoint)
title = " " * lpad + title + " " * rpad
lpad, rpad = self._get_padding_widths(options)
sum_widths = sum(n + lpad + rpad + 1 for n in self._widths)
sum_widths = sum([n + lpad + rpad + 1 for n in self._widths])

bits.append(self._justify(title, sum_widths - 1, "c"))
bits.append(endpoint)
Expand Down

0 comments on commit 7d2cf38

Please sign in to comment.