guix import: Add a blank line after each package definition.
authorLudovic Courtès <ludo@gnu.org>
Mon, 10 Oct 2022 15:24:19 +0000 (17:24 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 11 Oct 2022 14:05:31 +0000 (16:05 +0200)
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

index bd3cfd2..2bca927 100644 (file)
@@ -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))))