diff options
author | luke@maurits.id.au <luke@maurits.id.au@0f58610c-415a-11de-9c03-5d6cfad8e937> | 2013-10-07 02:49:05 +0000 |
---|---|---|
committer | luke@maurits.id.au <luke@maurits.id.au@0f58610c-415a-11de-9c03-5d6cfad8e937> | 2013-10-07 02:49:05 +0000 |
commit | 1d6399068e43ba96a05a750b68be91289fcd18c9 (patch) | |
tree | 6fd93f5adf9f3e261d2cf39b35069771d311597e | |
parent | f5a7bab035fcc30100c9af768ec04746d0ff1641 (diff) | |
download | python-prettytable-1d6399068e43ba96a05a750b68be91289fcd18c9.tar.gz |
Added title to example table.
git-svn-id: http://prettytable.googlecode.com/svn/trunk@138 0f58610c-415a-11de-9c03-5d6cfad8e937
-rw-r--r-- | prettytable.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/prettytable.py b/prettytable.py index 3a6f36a..a80ec20 100644 --- a/prettytable.py +++ b/prettytable.py @@ -1562,6 +1562,7 @@ def from_html_one(html_code, **kwargs): def main(): x = PrettyTable(["City name", "Area", "Population", "Annual Rainfall"]) + x.title = "Australian capital cities" x.sortby = "Population" x.reversesort = True x.int_format["Area"] = "04" |