From bf4a77fcd8a9753740ff545a5e21385c4eb49375 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 7 Oct 2023 10:18:24 -0700 Subject: [PATCH] Try specifying newlines in brackets --- zone-to-zonefile.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/zone-to-zonefile.nix b/zone-to-zonefile.nix index eca637c..d1afbe0 100644 --- a/zone-to-zonefile.nix +++ b/zone-to-zonefile.nix @@ -5,10 +5,8 @@ with lib; let removeBlankLines = str: - concatStringsSep "\n\n" (filter isString (builtins.split '' - - - +'' str)); + concatStringsSep "\n\n" + (filter isString (builtins.split "[\\n][\\n]+" str)); joinLines = concatStringsSep "\n";