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:")