Browse files

blame view was borked on empty lines

  • Loading branch information...
1 parent b86cd56 commit 64256b8f8a538990692fc65c0335748a7bac440d Daniel Chokola committed Dec 29, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 wit.rb
View
4 wit.rb
@@ -450,8 +450,8 @@ def blame(head, obj)
blames.last[:filename] = ary.last
when /summary/
blames.last[:summary] = line.sub(/summary\s+/, '')
- when ''
- blames.last[:lines].last[:content] = line[1..-1]
+ else
+ blames.last[:lines].last[:content] = line[1..-1] || ''
end
end

0 comments on commit 64256b8

Please sign in to comment.