aboutsummaryrefslogtreecommitdiff
path: root/wikijscmd/util.py
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2022-02-20 20:51:09 -0600
committerMark Powers <mark@marks.kitchen>2022-02-20 20:51:09 -0600
commitf197e75f664005ada405f900e37d227430a68793 (patch)
tree9c6609d59373a8c9bf0fcd089a15fd4d9d6fd618 /wikijscmd/util.py
parenta8d4877907f9df3d0ba88f900440e4cb4d7603b1 (diff)
Fix formatting of tree
Diffstat (limited to 'wikijscmd/util.py')
-rw-r--r--wikijscmd/util.py4
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):
"""