From: hylom Date: Fri, 21 Sep 2018 10:29:08 +0000 (+0900) Subject: Command::configdump: tidy output X-Git-Tag: v0.1.5~29 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=da347761ea6d26b83607f72167edbf5943875f39;p=newslash%2Fnewslash.git Command::configdump: tidy output --- diff --git a/src/newslash_web/lib/Newslash/Command/configdump.pm b/src/newslash_web/lib/Newslash/Command/configdump.pm index 9c0c29a4..aa9d677b 100644 --- a/src/newslash_web/lib/Newslash/Command/configdump.pm +++ b/src/newslash_web/lib/Newslash/Command/configdump.pm @@ -29,6 +29,8 @@ sub run { my $conf = $self->app->config; my $yaml = Dump($conf); + $yaml =~ s/^(\S.*:)$/\n$1/gm; + my $path = Mojo::File::path($filename); $path->spurt($yaml); }