fix newlines in commented defaults
[ikiwiki.git] / IkiWiki / Setup / Yaml.pm
index c7ff1988e850e9e04f3055d21d7018cff5e27234..0fc2736756d73ba099b27961a2772a769731b204 100644 (file)
@@ -39,7 +39,7 @@ sub dumpline ($$$$) {
        my $dump=Dump({$key => $value});
        chomp $dump;
        if (length $prefix) {
-               $dump=join("", map { $prefix.$_ } split(/\n/, $dump));
+               $dump=join("\n", map { $prefix.$_ } split(/\n/, $dump));
        }
        return $dump;
 }