summaryrefslogtreecommitdiff
path: root/prettytable.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix for issue 55 - constructor argument float_format not working as intendedHEADmasterjohn.filleau@gmail.com2014-07-061-40/+112
| | | | 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-071-0/+13
| | | | 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-071-0/+10
| | | | 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-071-3/+52
| | | | 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-071-1/+14
| | | | 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
* 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-051-4/+37
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@132 0f58610c-415a-11de-9c03-5d6cfad8e937
* Accept CSV format parameters as keyword arguments to from_csv.luke@maurits.id.au2013-10-051-3/+11
| | | | git-svn-id: http://prettytable.googlecode.com/svn/trunk@130 0f58610c-415a-11de-9c03-5d6cfad8e937
* Fixed sorting/slicing so that they happen in the more obvious order.luke@maurits.id.au2013-05-141-7/+29
| | | | | | | 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-5/+32
| | | | | | 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-8/+27
| | | | 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-48/+160
| | | | | | 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-20/+78
| | | | | | | | | 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-32/+76
| | | | | | | | | 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-021-1/+1
| | | | 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-261-6/+16
| | | | | | | | | 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-2/+6
| | | | | | 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-1/+1
| | | | | | 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-011-10/+10
| | | | | | 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-181-5/+6
| | | | | | | | | 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-9/+21
| | | | 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/+1068
git-svn-id: http://prettytable.googlecode.com/svn/trunk@63 0f58610c-415a-11de-9c03-5d6cfad8e937