diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-20 01:11:57 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-20 01:13:18 -0700 |
commit | fef9051c74645bdd43488d44215fe912d0c033b6 (patch) | |
tree | c10b0558ca7f2cd708016d63e7bfc98bdf84456d | |
parent | e6b2a257cc92d27fe4f404ba5e37ac2887226afc (diff) | |
download | unicorn-fef9051c74645bdd43488d44215fe912d0c033b6.tar.gz |
While we're at it, remove trailing whitespace for author names, too.
-rw-r--r-- | Rakefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -21,8 +21,8 @@ def tags body ||= "initial" { :time => Time.at(tagger.split(/ /)[-2].to_i).utc.strftime(timefmt), - :tagger_name => %r{^tagger ([^<]+)}.match(tagger)[1], - :tagger_email => %r{<([^>]+)>}.match(tagger)[1], + :tagger_name => %r{^tagger ([^<]+)}.match(tagger)[1].strip, + :tagger_email => %r{<([^>]+)>}.match(tagger)[1].strip, :id => `git rev-parse refs/tags/#{tag}`.chomp!, :tag => tag, :subject => subject, @@ -58,7 +58,7 @@ task :news_atom do url = "#{cgit_url}/tag/?id=#{tag[:tag]}" link! :rel => "alternate", :type => "text/html", :href =>url id! url - content(:type => 'text') { tag[:body] } + content({:type => 'text'}, tag[:body]) end end end |