guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/11: guix import: Add a blank line after each package definition.


From: guix-commits
Subject: 01/11: guix import: Add a blank line after each package definition.
Date: Tue, 11 Oct 2022 10:16:00 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 7d9fd1d7b7a328555adda4f72d7eec8906f28880
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Oct 10 17:24:19 2022 +0200

    guix import: Add a blank line after each package definition.
    
    Starting from commit 371a83b764c4993d198666e1674454eecbefcdf1, 'guix
    import crate -r' (or similar) would no longer print a blank line in
    between definitions.  This patch fixes it.
    
    Reported by jgart <jgart@dismail.de>.
    
    * guix/scripts/import.scm (guix-import): Add second 'newline' call.
---
 guix/scripts/import.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/guix/scripts/import.scm b/guix/scripts/import.scm
index bd3cfd2dc3..2bca927d63 100644
--- a/guix/scripts/import.scm
+++ b/guix/scripts/import.scm
@@ -97,7 +97,9 @@ Run IMPORTER with ARGS.\n"))
              ((? list? expressions)
               (for-each (lambda (expr)
                           (print expr)
-                          (newline))
+                          ;; Two newlines: one after the closing paren, and
+                          ;; one to leave a blank line.
+                          (newline) (newline))
                         expressions))
              (x
               (leave (G_ "'~a' import failed~%") importer))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]