Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

whitespace fixes

  • Loading branch information...
commit d4d974043619b59608d147256bfe62c1a1c520e7 1 parent e7e3639
@dominikh dominikh authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/yard-blame.rb
View
6 lib/yard-blame.rb
@@ -1,7 +1,7 @@
module GitBlameHandler
def self.blame_files; @@blame_files ||= {} end
def register(obj) @object = obj; super end
-
+
def process
super
info, bline = {}, statement.line_range.begin
@@ -21,10 +21,10 @@ def process
module GitBlameHelper
def format_blame(obj)
- format_lines(obj).split("\n").map do |l|
+ format_lines(obj).split("\n").map do |l|
next unless obj[:blame_info]
if info = obj[:blame_info][l.to_i]
- link_url("http://github.com/#{ENV['YARD_USER']}/#{ENV['YARD_PROJECT']}/blame/#{info[:rev]}/#{obj.file}#L#{l}", sprintf("%.8s", info[:rev])) +
+ link_url("http://github.com/#{ENV['YARD_USER']}/#{ENV['YARD_PROJECT']}/blame/#{info[:rev]}/#{obj.file}#L#{l}", sprintf("%.8s", info[:rev])) +
" " + h(info[:name])
else
""
Please sign in to comment.
Something went wrong with that request. Please try again.