civodul pushed a commit to branch master
in repository guix.

commit 7d9fd1d7b7a328555adda4f72d7eec8906f28880
Author: Ludovic Courtès <[email protected]>
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 <[email protected]>.
    
    * 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