summaryrefslogtreecommitdiff
path: root/guix/scripts
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-10-10 17:24:19 +0200
committerLudovic Courtès <ludo@gnu.org>2022-10-11 16:05:31 +0200
commit7d9fd1d7b7a328555adda4f72d7eec8906f28880 (patch)
treeaa5fd14d6f48f943cc149839212999b0197c2c78 /guix/scripts
parentf78cfcd7d3f1f76a5c09c21d76b14983d8428c4d (diff)
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.
Diffstat (limited to 'guix/scripts')
-rw-r--r--guix/scripts/import.scm4
1 files changed, 3 insertions, 1 deletions
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))))