diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-11-22 18:46:01 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-12-15 17:52:26 +0100 |
commit | 0ce6f0a35a4ed6d187c86751d36b76ca0e515f7a (patch) | |
tree | d9c9cae306b653ce9021a1b588ded6fd462c92bf /src/systemctl/systemctl-edit.c | |
parent | 2865507008a407dcf0d8116349978ea185457647 (diff) | |
download | systemd-0ce6f0a35a4ed6d187c86751d36b76ca0e515f7a.tar.gz |
systemctl: line break string where the newlines are
Diffstat (limited to 'src/systemctl/systemctl-edit.c')
-rw-r--r-- | src/systemctl/systemctl-edit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/systemctl/systemctl-edit.c b/src/systemctl/systemctl-edit.c index 7d919b28e2..19df478818 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), |