diff options
Diffstat (limited to 'wikijscmd')
-rw-r--r-- | wikijscmd/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wikijscmd/util.py b/wikijscmd/util.py index 86f2eb4..6720831 100644 --- a/wikijscmd/util.py +++ b/wikijscmd/util.py @@ -4,8 +4,8 @@ import re import os def print_item(item): - trimmmed_path = item["path"][:17]+"..." if len(item["path"]) > 20 else item["path"] - print("| %6s | %20s | %44s |" % (item["id"], trimmmed_path, item["title"]) ) + trimmed_title = item["title"][:17]+"..." if len(item["title"]) > 20 else item["title"] + print("| %6s | %-44s | %20s |" % (item["id"], item["path"], trimmed_title) ) def get_single_page(path): """ |