From 9b208ecc1e29926a7361ff75871ce9415bd8d147 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 27 Mar 2026 05:58:50 +0100 Subject: [PATCH] lib.ExecContext.log_delim(): No interactive footer lib.ExecContext.log_delim() logs a header not designed for enclosing command output, and, hence, no footer should be output. This commit suppresses it. Signed-off-by: Jan Lindemann --- src/python/jw/pkg/lib/ExecContext.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/python/jw/pkg/lib/ExecContext.py b/src/python/jw/pkg/lib/ExecContext.py index 3888df70..789d7485 100644 --- a/src/python/jw/pkg/lib/ExecContext.py +++ b/src/python/jw/pkg/lib/ExecContext.py @@ -122,8 +122,9 @@ class ExecContext(abc.ABC): def log_delim(self, start: bool) -> None: if not self.__verbose: return None - if start and self.__interactive: - log(NOTICE, self.__delim) + if self.__interactive: # Don't log footer in interative mode + if start: + log(NOTICE, self.__delim) return delim = ',' + self.__delim + ' >' if start else '`' + self.__delim + ' <' log(NOTICE, delim)