From 8ddbcbf18467e702fe32be7de0f125677d3251ce Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 12 Mar 2006 03:48:50 +0000 Subject: [PATCH] improve message --- ikiwiki | 6 +++--- templates/recentchanges.tmpl | 10 ++++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ikiwiki b/ikiwiki index da3dde46d..0266edfa4 100755 --- a/ikiwiki +++ b/ikiwiki @@ -407,7 +407,7 @@ sub rcs_recentchanges ($) { #{{{ my $div=qr/^--------------------+$/; my $infoline=qr/^r(\d+)\s+\|\s+([^\s]+)\s+\|\s+(\d+-\d+-\d+\s+\d+:\d+:\d+\s+[-+]?\d+).*/; my $state='start'; - my ($rev, $user, $when, @pages, $message); + my ($rev, $user, $when, @pages, @message); foreach (`LANG=C svn log -v '$svn_url'`) { chomp; if ($state eq 'start' && /$div/) { @@ -427,7 +427,7 @@ sub rcs_recentchanges ($) { #{{{ } elsif ($state eq 'body' && /$div/) { push @ret, { rev => $rev, user => $user, - when => $when, message => $message, + when => $when, message => [@message], pages => [@pages] } if @pages; return @ret if @ret >= $num; @@ -436,7 +436,7 @@ sub rcs_recentchanges ($) { #{{{ @pages=(); } elsif ($state eq 'body') { - $message.="$_
\n"; + push @message, {line => $_}, } } } diff --git a/templates/recentchanges.tmpl b/templates/recentchanges.tmpl index 8433e3ae0..4637906e2 100644 --- a/templates/recentchanges.tmpl +++ b/templates/recentchanges.tmpl @@ -12,11 +12,17 @@
  • - +
    changed by : - + + + +
    +
    +
    +
  • -- 2.26.2