From 227ae3b1b143a4aacb0ca317352ebc1f9a396189 Mon Sep 17 00:00:00 2001 From: Laurie Stephey Date: Fri, 6 Oct 2023 17:25:57 -0700 Subject: [PATCH] remove newline replace --- podman_hpc/podman_hpc.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/podman_hpc/podman_hpc.py b/podman_hpc/podman_hpc.py index 6a07f71..d092f5e 100755 --- a/podman_hpc/podman_hpc.py +++ b/podman_hpc/podman_hpc.py @@ -350,10 +350,7 @@ def call_podman(ctx, siteconf, help, podman_args, **site_opts): app_options = "" if formatter.getvalue(): app_options = ( - f"{app_name.capitalize()} {formatter.getvalue()}\n".replace( - "\n", "\\n" - ) - ) + f"{app_name.capitalize()} {formatter.getvalue()}\n") cmd = [siteconf.podman_bin, ctx.info_name, "--help"] proc = Popen(cmd, env=siteconf.env, stdout=PIPE)