summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--prettytable.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/prettytable.py b/prettytable.py
index d8adc06..3a6f36a 100644
--- a/prettytable.py
+++ b/prettytable.py
@@ -1564,8 +1564,8 @@ def main():
x = PrettyTable(["City name", "Area", "Population", "Annual Rainfall"])
x.sortby = "Population"
x.reversesort = True
- x.int_format["Area"] = "04d"
- x.float_format = "6.1f"
+ x.int_format["Area"] = "04"
+ x.float_format = "6.1"
x.align["City name"] = "l" # Left align city names
x.add_row(["Adelaide", 1295, 1158259, 600.5])
x.add_row(["Brisbane", 5905, 1857594, 1146.4])