diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2022-07-28 17:06:46 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2022-07-28 17:06:46 -0400 |
commit | 761edf1cc65e5fabac60cba21be90ff7ddfb67da (patch) | |
tree | 9bece784003aef336cf2af27b9b015e64ea1ce4e | |
parent | 49460b80d7d4f52c3de9f00032e3a1525d38d738 (diff) | |
download | b4-761edf1cc65e5fabac60cba21be90ff7ddfb67da.tar.gz |
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 <konstantin@linuxfoundation.org>
-rw-r--r-- | b4/ez.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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') |