]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: line break string where the newlines are
authorLennart Poettering <lennart@poettering.net>
Tue, 22 Nov 2022 17:46:01 +0000 (18:46 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 15 Dec 2022 16:52:26 +0000 (17:52 +0100)
src/systemctl/systemctl-edit.c

index 7d919b28e277fd8aecf644e4e9867d5fd542e14c..19df478818b6d532f1038109c032777a9f6ed892 100644 (file)
@@ -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),