[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#56898] [PATCH 05/13] style: Adjust test to not emit blank lines.
From: |
Ludovic Courtès |
Subject: |
[bug#56898] [PATCH 05/13] style: Adjust test to not emit blank lines. |
Date: |
Tue, 2 Aug 2022 23:44:11 +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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/style.scm b/tests/style.scm
index 4ac5ae7c09..6aab2c3785 100644
--- a/tests/style.scm
+++ b/tests/style.scm
@@ -355,9 +355,9 @@ (define 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")
--
2.37.1
- [bug#56898] [PATCH 00/13] Put the pretty printer to good use, Ludovic Courtès, 2022/08/02
- [bug#56898] [PATCH 01/13] style: Move reader and printer to (guix read-print)., Ludovic Courtès, 2022/08/02
- [bug#56898] [PATCH 02/13] read-print: Add System and Home special forms., Ludovic Courtès, 2022/08/02
- [bug#56898] [PATCH 03/13] read-print: Expose comment constructor., Ludovic Courtès, 2022/08/02
- [bug#56898] [PATCH 04/13] read-print: Introduce <blank> parent class of <comment>., Ludovic Courtès, 2022/08/02
- [bug#56898] [PATCH 07/13] read-print: Recognize page breaks., Ludovic Courtès, 2022/08/02
- [bug#56898] [PATCH 05/13] style: Adjust test to not emit blank lines.,
Ludovic Courtès <=
- [bug#56898] [PATCH 09/13] read-print: 'canonicalize-comment' leaves top-level comments unchanged., Ludovic Courtès, 2022/08/02
- [bug#56898] [PATCH 13/13] installer: Add comments and vertical space to the generated config., Ludovic Courtès, 2022/08/02
- [bug#56898] [PATCH 11/13] read-print: Support printing multi-line comments., Ludovic Courtès, 2022/08/02
- [bug#56898] [PATCH 08/13] read-print: Add code to read and write sequences of expressions/blanks., Ludovic Courtès, 2022/08/02
- [bug#56898] [PATCH 06/13] read-print: Read and render vertical space., Ludovic Courtès, 2022/08/02
- [bug#56898] [PATCH 10/13] style: Add '--whole-file' option., Ludovic Courtès, 2022/08/02
- [bug#56898] [PATCH 12/13] installer: Render the final configuration with (guix read-print)., Ludovic Courtès, 2022/08/02
- [bug#56898] [PATCH 00/13] Put the pretty printer to good use, Mathieu Othacehe, 2022/08/07
- bug#56898: [PATCH 00/13] Put the pretty printer to good use, Ludovic Courtès, 2022/08/09