From 1a4fc09799e13a64365102d2fc04e70ff14cb452 Mon Sep 17 00:00:00 2001 From: "luke@maurits.id.au" Date: Fri, 16 May 2014 22:09:47 +0000 Subject: Added 0x000f to the list of special characters with width 0, to fix problems with coloured strings produced by the Blessings library. git-svn-id: http://prettytable.googlecode.com/svn/trunk@145 0f58610c-415a-11de-9c03-5d6cfad8e937 --- prettytable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prettytable.py b/prettytable.py index 5434e6d..78c5656 100644 --- a/prettytable.py +++ b/prettytable.py @@ -1502,7 +1502,7 @@ def _char_block_width(char): if char in (0x0008, 0x007f): return -1 # Other control characters - elif char in (0x0000, 0x001f): + elif char in (0x0000, 0x000f, 0x001f): return 0 # Take a guess return 1 -- cgit v1.2.1