From f197e75f664005ada405f900e37d227430a68793 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sun, 20 Feb 2022 20:51:09 -0600 Subject: Fix formatting of tree --- wikijscmd/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wikijscmd') 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): """ -- cgit v1.2.3