summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix for issue 55 - constructor argument float_format not working as intendedHEADmasterjohn.filleau@gmail.com2014-07-062-41/+114
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@147 0f58610c-415a-11de-9c03-5d6cfad8e937
* Added 0x000f to the list of special characters with width 0, to fix problems ↵luke@maurits.id.au2014-05-161-1/+1
| | | | | | with coloured strings produced by the Blessings library. git-svn-id: http://prettytable.googlecode.com/svn/trunk@145 0f58610c-415a-11de-9c03-5d6cfad8e937
* First implementation of paginate method.luke@maurits.id.au2013-10-072-0/+15
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@143 0f58610c-415a-11de-9c03-5d6cfad8e937
* Handle colspan in from_html.luke@maurits.id.au2013-10-072-0/+12
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@142 0f58610c-415a-11de-9c03-5d6cfad8e937
* Add padding to titles and make table expand to fit title if necessary.luke@maurits.id.au2013-10-071-7/+18
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@141 0f58610c-415a-11de-9c03-5d6cfad8e937
* Initial implementation of min/max_table_width.luke@maurits.id.au2013-10-072-4/+54
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@140 0f58610c-415a-11de-9c03-5d6cfad8e937
* Initial implementation of min_width.luke@maurits.id.au2013-10-072-1/+15
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@139 0f58610c-415a-11de-9c03-5d6cfad8e937
* Added title to example table.luke@maurits.id.au2013-10-071-0/+1
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@138 0f58610c-415a-11de-9c03-5d6cfad8e937
* Get rid of weird formatting characters in example table.luke@maurits.id.au2013-10-071-2/+2
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@137 0f58610c-415a-11de-9c03-5d6cfad8e937
* Improvements to title generation, especially do not include spurious ↵luke@maurits.id.au2013-10-071-12/+15
| | | | | | junction characters. git-svn-id: http://prettytable.googlecode.com/svn/trunk@136 0f58610c-415a-11de-9c03-5d6cfad8e937
* Document title functionality.luke@maurits.id.au2013-10-061-0/+1
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@135 0f58610c-415a-11de-9c03-5d6cfad8e937
* Print title when making HTML table.luke@maurits.id.au2013-10-061-0/+17
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@134 0f58610c-415a-11de-9c03-5d6cfad8e937
* User property and property.setter decorators for attributes.luke@maurits.id.au2013-10-061-94/+116
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@133 0f58610c-415a-11de-9c03-5d6cfad8e937
* Added title attribute/option.luke@maurits.id.au2013-10-052-4/+46
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@132 0f58610c-415a-11de-9c03-5d6cfad8e937
* Document previous work on changing slice/sort order.luke@maurits.id.au2013-10-051-0/+4
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@131 0f58610c-415a-11de-9c03-5d6cfad8e937
* Accept CSV format parameters as keyword arguments to from_csv.luke@maurits.id.au2013-10-052-3/+16
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@130 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-142-7/+41
| | | | | | | 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-062-5/+51
| | | | | | 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-192-9/+28
| | | | 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-193-84/+247
| | | | | | codes when calculating string length. git-svn-id: http://prettytable.googlecode.com/svn/trunk@121 0f58610c-415a-11de-9c03-5d6cfad8e937
* Updated CHANGELOG in preparation for 0.7.luke@maurits.id.au2013-01-221-3/+17
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@90 0f58610c-415a-11de-9c03-5d6cfad8e937
* Updated README to discuss new features.luke@maurits.id.au2013-01-221-12/+37
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@89 0f58610c-415a-11de-9c03-5d6cfad8e937
* Implemented the totally unobjectionable parts of the enhancement suggested ↵luke@maurits.id.au2013-01-222-27/+85
| | | | | | | | | 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-212-32/+99
| | | | | | | | | 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
* Fix simple bug regarding initialisation of int_format for new tables.luke@maurits.id.au2012-08-022-1/+4
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@85 0f58610c-415a-11de-9c03-5d6cfad8e937
* Made sure field name widths are calculated using the new Unicode-aware code ↵luke@maurits.id.au2012-07-262-7/+38
| | | | | | | | | 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-042-7/+11
| | | | | | 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-042-1/+6
| | | | | | iterator. git-svn-id: http://prettytable.googlecode.com/svn/trunk@82 0f58610c-415a-11de-9c03-5d6cfad8e937
* Substantially sped up the Unicode block width code!luke@maurits.id.au2012-07-031-5/+6
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@81 0f58610c-415a-11de-9c03-5d6cfad8e937
* 1) Fixed width calculation for katakanaluke@maurits.id.au2012-07-031-22/+27
| | | | | | | 2) Strip data read from .csv files git-svn-id: http://prettytable.googlecode.com/svn/trunk@80 0f58610c-415a-11de-9c03-5d6cfad8e937
* Removed and/or replaced all encumbered LGPL code from Kitchen. Seems to be ↵luke@maurits.id.au2012-07-031-168/+23
| | | | | | working for basic Japanese, Russian and Arabic. However, new implementation is quite a bit slower than Kitchen's. Plenty of scope for optimisation. git-svn-id: http://prettytable.googlecode.com/svn/trunk@79 0f58610c-415a-11de-9c03-5d6cfad8e937
* Lots of work to support appropriate alignment/padding/etc. of text using ↵luke@maurits.id.au2012-07-021-10/+201
| | | | | | non-Latin characters (e.g. Kanji, Cyrillic, etc.). Note that this has currently been achieved by using a modified version of code from the "kitchen" library. Kitchen is LGPL, and since I had to modify their code (to get Python 3 support working), if I were to distribute the current trunk code it would need to be LGPLed instead of BSD licensed. If I don't want to switch to LGPL for PrettyTable I need to either get permission from everyone who has copyright on the modified code (could be hard) or do a clean room reimplementation. Fun times ahead! git-svn-id: http://prettytable.googlecode.com/svn/trunk@78 0f58610c-415a-11de-9c03-5d6cfad8e937
* Removed all use of StringIO because it can't handle Unicode characters that ↵luke@maurits.id.au2012-07-011-70/+68
| | | | | | can't be encoded using ASCII. Totally lame. git-svn-id: http://prettytable.googlecode.com/svn/trunk@77 0f58610c-415a-11de-9c03-5d6cfad8e937
* Switched int_format and float_format to use fancy new Python string ↵luke@maurits.id.au2012-07-012-14/+14
| | | | | | 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
* Added header_style option.luke@maurits.id.au2012-06-291-5/+37
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@75 0f58610c-415a-11de-9c03-5d6cfad8e937
* First implementation of DB cursor factory.luke@maurits.id.au2012-06-291-4/+10
| | | | | | | Fixed a bug affecting use of the "fields" option. git-svn-id: http://prettytable.googlecode.com/svn/trunk@74 0f58610c-415a-11de-9c03-5d6cfad8e937
* Added initial implementation of CSV factory.luke@maurits.id.au2012-06-291-0/+25
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@73 0f58610c-415a-11de-9c03-5d6cfad8e937
* Lots of miscellaneous improvements: reduction of code duplication, ↵luke@maurits.id.au2012-06-291-46/+72
| | | | | | performance tweaks, validation, etc. git-svn-id: http://prettytable.googlecode.com/svn/trunk@72 0f58610c-415a-11de-9c03-5d6cfad8e937
* Copied the fix for different cgi escaping libraries for different versions ↵luke@maurits.id.au2012-06-271-2/+4
| | | | | | of Python 3.x from 0.6.1 to trunk. git-svn-id: http://prettytable.googlecode.com/svn/trunk@71 0f58610c-415a-11de-9c03-5d6cfad8e937
* Substantially tidied up the logic of the non-HTML stringify functions, ↵luke@maurits.id.au2012-06-271-48/+27
| | | | | | making things much more logical and consistent, and quite a bit faster as a nice bonus. git-svn-id: http://prettytable.googlecode.com/svn/trunk@70 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-183-5/+43
| | | | | | | | | 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-162-10/+22
| | | | 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-165-5/+471
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@63 0f58610c-415a-11de-9c03-5d6cfad8e937
* Copied trunk to 0.6 branch and updated non-source files in preparation for 0.6.luke@maurits.id.au2012-05-023-10/+49
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@55 0f58610c-415a-11de-9c03-5d6cfad8e937
* Minor tests, tweaks and changes.luke@maurits.id.au2012-05-022-5/+42
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@54 0f58610c-415a-11de-9c03-5d6cfad8e937
* Reimplemented slicing with __getitem__ instead of __getslice__luke@maurits.id.au2012-05-021-8/+7
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@53 0f58610c-415a-11de-9c03-5d6cfad8e937
* Fixed lots of small assorted bugs. Fixed table slicing, which has ↵luke@maurits.id.au2012-05-022-4/+27
| | | | | | apparently been broken forever(!). Wrote some tests for slicing, in preparation for rewriting it using __getitem__. git-svn-id: http://prettytable.googlecode.com/svn/trunk@52 0f58610c-415a-11de-9c03-5d6cfad8e937
* Very minor tidy up of Python 3 compatibility stuff.luke@maurits.id.au2012-05-021-6/+4
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@51 0f58610c-415a-11de-9c03-5d6cfad8e937
* Float format can now be specified on a per-column basis. Also, integer ↵luke@maurits.id.au2012-05-012-16/+46
| | | | | | formatting is now available using a similar interfact, by setting table.int_format. git-svn-id: http://prettytable.googlecode.com/svn/trunk@50 0f58610c-415a-11de-9c03-5d6cfad8e937