From f5a7bab035fcc30100c9af768ec04746d0ff1641 Mon Sep 17 00:00:00 2001 From: "luke@maurits.id.au" Date: Mon, 7 Oct 2013 02:45:25 +0000 Subject: Get rid of weird formatting characters in example table. git-svn-id: http://prettytable.googlecode.com/svn/trunk@137 0f58610c-415a-11de-9c03-5d6cfad8e937 --- prettytable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prettytable.py') 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]) -- cgit v1.2.1