From 3cf447cc3a1d669fb24087ab19e293b44db3ac56 Mon Sep 17 00:00:00 2001 From: Vee Date: Sat, 13 Jun 2020 06:39:18 -0400 Subject: [PATCH] Standardize abbrevs formatting The output format for `help` includes a trailing and leading blank line, which were missing from `abbrevs` output. Additionally, `help` includes a colon at the end of the header line, which this commit also adds to `abbrevs` output. --- av98.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/av98.py b/av98.py index d2e3490..41a0c06 100755 --- a/av98.py +++ b/av98.py @@ -1133,12 +1133,13 @@ Slow internet connection? Use 'set timeout' to be more patient.""") def do_abbrevs(self, *args): """Print all AV-98 command abbreviations.""" - header = "Command Abbreviations" - self.stdout.write("{}\n".format(str(header))) + header = "Command Abbreviations:" + self.stdout.write("\n{}\n".format(str(header))) if self.ruler: self.stdout.write("{}\n".format(str(self.ruler * len(header)))) for k, v in _ABBREVS.items(): self.stdout.write("{:<7} {}\n".format(k, v)) + self.stdout.write("\n") ### Stuff for getting around def do_go(self, line):