summaryrefslogtreecommitdiff
path: root/prettytable_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Added title attribute/option.luke@maurits.id.au2013-10-051-0/+9
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@132 0f58610c-415a-11de-9c03-5d6cfad8e937
* Add shebang line and set executable.luke@maurits.id.au2013-10-051-0/+1
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@129 0f58610c-415a-11de-9c03-5d6cfad8e937
* Fixed sorting/slicing so that they happen in the more obvious order.luke@maurits.id.au2013-05-141-0/+12
| | | | | | | Added oldsortslice option to revert to old behaviour for backward compatibility. git-svn-id: http://prettytable.googlecode.com/svn/trunk@128 0f58610c-415a-11de-9c03-5d6cfad8e937
* Added print_empty option to control whether or not emtpy tables result in a ↵luke@maurits.id.au2013-04-061-0/+19
| | | | | | blank string or an empty frame. git-svn-id: http://prettytable.googlecode.com/svn/trunk@125 0f58610c-415a-11de-9c03-5d6cfad8e937
* Added xhtml option to control linebreak element produced by get_html_string().luke@maurits.id.au2013-02-191-1/+1
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@122 0f58610c-415a-11de-9c03-5d6cfad8e937
* Copied 0.7-RELEASE code from 0.7 branch to trunk.\n\nDon't count ANSI color ↵luke@maurits.id.au2013-02-191-36/+85
| | | | | | codes when calculating string length. git-svn-id: http://prettytable.googlecode.com/svn/trunk@121 0f58610c-415a-11de-9c03-5d6cfad8e937
* Implemented the totally unobjectionable parts of the enhancement suggested ↵luke@maurits.id.au2013-01-221-7/+7
| | | | | | | | | in Issue 22. Made formatted HTML output more closely mirror ASCII output. git-svn-id: http://prettytable.googlecode.com/svn/trunk@88 0f58610c-415a-11de-9c03-5d6cfad8e937
* Fixed bug reported in issue 19, whereby "pt.sortby = None" returned a ↵luke@maurits.id.au2013-01-211-0/+23
| | | | | | | | | validation error. Fixed bug reported in issue 23, whereby certain constructor keywords, including "border", were effectively ignored. git-svn-id: http://prettytable.googlecode.com/svn/trunk@87 0f58610c-415a-11de-9c03-5d6cfad8e937
* Made sure field name widths are calculated using the new Unicode-aware code ↵luke@maurits.id.au2012-07-261-1/+22
| | | | | | | | | so that e.g. Japanese field names are rendered correctly. Added a table of Japanese text to the unit tests to help make sure alignment of CJK characters is handled appropriately. git-svn-id: http://prettytable.googlecode.com/svn/trunk@84 0f58610c-415a-11de-9c03-5d6cfad8e937
* Fixed Python 3 compatibility bug - Py3k requires __str__ to return unicode ↵luke@maurits.id.au2012-07-041-5/+5
| | | | | | for print() to work, duh! git-svn-id: http://prettytable.googlecode.com/svn/trunk@83 0f58610c-415a-11de-9c03-5d6cfad8e937
* Fixed small Python 3 compatibility issue, regarding calling .next() on an ↵luke@maurits.id.au2012-07-041-0/+5
| | | | | | iterator. git-svn-id: http://prettytable.googlecode.com/svn/trunk@82 0f58610c-415a-11de-9c03-5d6cfad8e937
* Switched int_format and float_format to use fancy new Python string ↵luke@maurits.id.au2012-07-011-4/+4
| | | | | | formatting. This allows e.g. binary, hex, etc. formatting of integers, scientific notation formatting of floats and other fancy stuff that wasn't possible previously. git-svn-id: http://prettytable.googlecode.com/svn/trunk@76 0f58610c-415a-11de-9c03-5d6cfad8e937
* 1) Fixed a bug regarding validation of max_width, on the basis of an email ↵luke@maurits.id.au2012-05-181-0/+32
| | | | | | | | | from Anthony Toole. Also made some other changes to validation code and unit testing on the basis of this bug. 2) Repaired Python 3 compatibility, which the switch to StringIO had broken. git-svn-id: http://prettytable.googlecode.com/svn/trunk@65 0f58610c-415a-11de-9c03-5d6cfad8e937
* Build table strings using cStringIO, for best performance with large tables.luke@maurits.id.au2012-05-161-1/+1
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@64 0f58610c-415a-11de-9c03-5d6cfad8e937
* Updated trunk to mirror 0.6 branch.luke@maurits.id.au2012-05-161-0/+439
git-svn-id: http://prettytable.googlecode.com/svn/trunk@63 0f58610c-415a-11de-9c03-5d6cfad8e937