]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Rcs/svn.pm
<paravoid> cosmetic and minor, but it makes the output far more readable,
[git.ikiwiki.info.git] / IkiWiki / Rcs / svn.pm
index 5474e3be2537a311896e10c71613fa19da243031..199a02ee1ec4e3b1e3aec0ff2b8ffaa100a29088 100644 (file)
@@ -64,7 +64,8 @@ sub rcs_commit ($$$) { #{{{
                        }
                }
 
-               if (system("svn", "commit", "--quiet", "-m",
+               if (system("svn", "commit", "--quiet", 
+                          "--encoding", "UTF-8", "-m",
                           possibly_foolish_untaint($message),
                           "$config{srcdir}") != 0) {
                        my $conflict=readfile("$config{srcdir}/$file");
@@ -125,6 +126,7 @@ sub rcs_recentchanges ($) { #{{{
                foreach my $msgline (split(/\n/, $logentry->{msg})) {
                        push @message, { line => escapeHTML($msgline) };
                }
+               unshift @message, { line => "\n" } if @message > 1;
 
                my $committype="web";
                if (defined $message[0] &&
@@ -201,9 +203,7 @@ sub rcs_notify () { #{{{
                }
                $subject.=" by $user";
 
-               my $template=HTML::Template->new(
-                       filename => "$config{templatedir}/notifymail.tmpl"
-               );
+               my $template=template("notifymail.tmpl");
                $template->param(
                        wikiname => $config{wikiname},
                        diff => $diff,