lib/strings.concatLines: call concatStringsSep directly v2 (#514515)

This commit is contained in:
Johannes Kirschbauer 2026-05-10 13:14:20 +00:00 committed by GitHub
commit 420a86a788
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -337,7 +337,6 @@ rec {
/**
Concatenate a list of strings, adding a newline at the end of each one.
Defined as `concatMapStrings (s: s + "\n")`.
# Inputs
@ -361,7 +360,7 @@ rec {
:::
*/
concatLines = concatMapStrings (s: s + "\n");
concatLines = lines: optionalString (lines != [ ]) (concatStringsSep "\n" lines + "\n");
/**
Given string `s`, replace every occurrence of the string `from` with the string `to`.