From e294feb74dfde93b3bb13384181b4660763390fe Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sat, 9 Aug 2025 21:50:02 -0700 Subject: [PATCH] More implementation --- ucsinfer/__main__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ucsinfer/__main__.py b/ucsinfer/__main__.py index 5316b99..9d52d59 100644 --- a/ucsinfer/__main__.py +++ b/ucsinfer/__main__.py @@ -136,7 +136,6 @@ class Commands(cmd.Cmd): return super().preloop() def precmd(self, line: str): - return super().precmd(line) def postcmd(self, stop: bool, line: str) -> bool: @@ -159,7 +158,10 @@ class Commands(cmd.Cmd): def print_one_rec(index, rec): cat, subcat, exp = lookup_cat(rec, self.catlist) - print(f" [{index:2}] : {rec} - {cat} / {subcat} - {exp[0:30]}") + line = f" [{index:2}] : {rec} - {cat} / {subcat} - {exp}" + if len(line) > 75: + line = line[0:75] + "..." + print(line) self.rec_list = [] print("Suggested from description:")