--- trunk/lib/Frey/SVN.pm 2008/12/17 19:40:31 875 +++ trunk/lib/Frey/SVN.pm 2009/01/02 16:56:42 909 @@ -108,7 +108,7 @@ $foo =~ s//>/g; $foo =~ s/"/"/g; - $foo =~ s/([\n\r][\n\r]+)/$1/gis; +# $foo =~ s/([\n\r][\n\r]+)/$1/gis; $foo =~ s/([\n\r]+)([\-\*]\s+)/$1$2/gis; $foo =~ s/([\n\r]+)(r\d+:\s+)/$1$2/gis; $foo =~ s/([\n\r]+)(\s+r\d+@)/$1$2/gis; # svk @@ -118,9 +118,25 @@ our $html = ''; $self->add_css(qq| - .files { color: #888; font-family: monospace; } + .commit { + clear: both; + padding-top: 1em; + padding-bottom: 1em; + border-top: 1px dashed #ccc; + } + .files { + color: #888; + font-family: monospace; + font-size: 80%; + float: right; + padding-bottom: 1.2em; /* fix 80% back to original 1em */ + } .date, .revision { color: #666; } - .message { padding-bottom: 0.5em; } + .message { + padding-top: 0.5em; + padding-left: 2em; /* like blockquote */ + white-space: pre-wrap; + } ins { color: #8c8 } del { color: #c88 } @@ -135,8 +151,6 @@ $date =~ s/T/ /; $date =~ s/\.\d+Z$//; - $html .= qq|
$date $e->{author} $e->{revision}
\n|; - my $msg = $e->{'msg'}; $msg = '' if ref($msg); # FIXME why do I need this, dammit? if ( $msg ) { @@ -158,7 +172,15 @@ } } - $html .= qq|
\n$msg\n
\n| . join(",\n",@files) . qq|\n
\n
|; + $html .= qq| +
+ $date + $e->{author} + $e->{revision} +
\n| . join("
\n",@files) . qq|\n
+ $msg +
+ |; });