From 761edf1cc65e5fabac60cba21be90ff7ddfb67da Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Thu, 28 Jul 2022 17:06:46 -0400 Subject: ez: minor fixes to logic and output Fixes a logical problem where we showed duplicate addresses in the list, and unwraps headers before we print them out. Signed-off-by: Konstantin Ryabitsev --- b4/ez.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/b4/ez.py b/b4/ez.py index eaa9dfe..a6f25ed 100644 --- a/b4/ez.py +++ b/b4/ez.py @@ -711,7 +711,7 @@ def print_pretty_addrs(addrs: list, hdrname: str) -> None: return logger.info('%s: %s', hdrname, b4.format_addrs([addrs[0]])) if len(addrs) > 1: - for addr in addrs: + for addr in addrs[1:]: logger.info(' %s', b4.format_addrs([addr])) @@ -943,7 +943,7 @@ def cmd_send(cmdargs: argparse.Namespace) -> None: for commit, msg in patches: if not msg: continue - logger.info(msg.get('Subject')) + logger.info(' %s', re.sub(r'\s+', ' ', msg.get('Subject'))) logger.info('---') try: input('Press Enter to send or Ctrl-C to abort') -- cgit v1.2.3