style: Adjust test to not emit blank lines.
authorLudovic Courtès <ludo@gnu.org>
Tue, 2 Aug 2022 12:48:59 +0000 (14:48 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 8 Aug 2022 09:22:32 +0000 (11:22 +0200)
Previously this test would produce a file containing blank lines between
inputs.

* tests/style.scm ("input labels, modify-inputs and margin comment"):
Remove trailing newlines in replacement strings of 'substitute*'
expression.

tests/style.scm

index 4ac5ae7..6aab2c3 100644 (file)
 
       (substitute* file
         ((",gmp\\)(.*)$" _ rest)
-         (string-append ",gmp) ;margin comment\n" rest))
+         (string-append ",gmp) ;margin comment" rest))
         ((",acl\\)(.*)$" _ rest)
-         (string-append ",acl) ;another one\n" rest)))
+         (string-append ",acl) ;another one" rest)))
 
       (system* "guix" "style" "-L" directory "-S" "inputs"
                "my-coreutils")