add newline to --set-yaml value
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 24 Mar 2010 19:25:10 +0000 (15:25 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 24 Mar 2010 19:25:10 +0000 (15:25 -0400)
YAML is picky about the data ending with a newline, and this makes
it easier to accomplish that

ikiwiki.in

index a8343ed0f99bb1e44b98e7ba4757c48693a45376..1758399ea83e0380a4cc90337c5a3edfe0135327 100755 (executable)
@@ -104,7 +104,7 @@ sub getconfig () {
                                eval q{use YAML::Any};
                                eval q{use YAML} if $@;
                                die $@ if $@;
-                               $config{$var}=Load($val);
+                               $config{$var}=Load($val."\n");
                        },
                        "version" => sub {
                                print "ikiwiki version $IkiWiki::version\n";