summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluke@maurits.id.au <luke@maurits.id.au@0f58610c-415a-11de-9c03-5d6cfad8e937>2014-05-16 22:09:47 +0000
committerluke@maurits.id.au <luke@maurits.id.au@0f58610c-415a-11de-9c03-5d6cfad8e937>2014-05-16 22:09:47 +0000
commit1a4fc09799e13a64365102d2fc04e70ff14cb452 (patch)
tree6bc9c25014e7d89f1c2046b546a41e5182e07f71
parent332e373583f3d83704a98b50d5af72e653efe3a0 (diff)
downloadpython-prettytable-1a4fc09799e13a64365102d2fc04e70ff14cb452.tar.gz
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
-rw-r--r--prettytable.py2
1 files changed, 1 insertions, 1 deletions
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