From 0ce6f0a35a4ed6d187c86751d36b76ca0e515f7a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 22 Nov 2022 18:46:01 +0100 Subject: [PATCH] systemctl: line break string where the newlines are --- src/systemctl/systemctl-edit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/systemctl/systemctl-edit.c b/src/systemctl/systemctl-edit.c index 7d919b28e27..19df478818b 100644 --- a/src/systemctl/systemctl-edit.c +++ b/src/systemctl/systemctl-edit.c @@ -168,8 +168,10 @@ static int create_edit_temp_file( fprintf(f, "### Editing %s\n" - EDIT_MARKER_START - "\n\n%s%s\n" + EDIT_MARKER_START "\n" + "\n" + "%s%s" + "\n" EDIT_MARKER_END, new_path, strempty(new_contents),