jp: replace no_lf argument by end in disp (same as in print)

This commit is contained in:
Goffi 2020-11-12 14:53:16 +01:00
commit f4c7f5e55e

View file

@ -194,9 +194,10 @@ class InputCommon(base.CommandBase):
error=True,
)
self.host.quit(C.EXIT_DATA_ERROR)
end = '\n' if self.args.debug else ' '
self.disp(
A.color(C.A_HEADER, _("command {idx}").format(idx=self.idx)),
no_lf=not self.args.debug,
end = end,
)
stdin = "".join(self._stdin)
if self.args.debug:
@ -226,7 +227,7 @@ class InputCommon(base.CommandBase):
)
self.disp("\n")
else:
self.disp(" (" + ", ".join(self._values_ori) + ")", 2, no_lf=True)
self.disp(" (" + ", ".join(self._values_ori) + ")", 2, end=' ')
args = [sys.argv[0]] + self.args.command + self._opts + self._pos
p = await asyncio.create_subprocess_exec(
*args,