diff options
author | luke@maurits.id.au <luke@maurits.id.au@0f58610c-415a-11de-9c03-5d6cfad8e937> | 2013-10-07 02:45:25 +0000 |
---|---|---|
committer | luke@maurits.id.au <luke@maurits.id.au@0f58610c-415a-11de-9c03-5d6cfad8e937> | 2013-10-07 02:45:25 +0000 |
commit | f5a7bab035fcc30100c9af768ec04746d0ff1641 (patch) | |
tree | 75daf42d61037c55e80251e030b6464d448b5058 | |
parent | c21c692d379a5916453be07b206507f791aa4fc0 (diff) | |
download | python-prettytable-f5a7bab035fcc30100c9af768ec04746d0ff1641.tar.gz |
Get rid of weird formatting characters in example table.
git-svn-id: http://prettytable.googlecode.com/svn/trunk@137 0f58610c-415a-11de-9c03-5d6cfad8e937
-rw-r--r-- | prettytable.py | 4 |
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]) |