Skip to content
Browse files

Merge branch 'master' of https://github.com/rdp/ruby-prof

  • Loading branch information...
2 parents a6ff5b7 + 47fe785 commit 363b7d110c7afb42ecfb3b1c5ebbf76c2b5a9557 @rdp rdp committed May 9, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/ruby-prof/call_stack_printer.rb
  2. +1 −1 lib/ruby-prof/graph_html_printer.rb
View
2 lib/ruby-prof/call_stack_printer.rb
@@ -123,7 +123,7 @@ def link(call_info)
if RUBY_PLATFORM =~ /darwin/
"<a href=\"txmt://open?url=file://#{file}&line=#{method.line}\">#{h(name(call_info))}</a>"
else
- "<a href=\"file://#{file}?line=#{method.line}\">#{h(name(call_info))}</a>"
+ "<a href=\"file://#{file}##{method.line}\">#{h(name(call_info))}</a>"
end
end
end
View
2 lib/ruby-prof/graph_html_printer.rb
@@ -125,7 +125,7 @@ def file_link(path, linenum)
if RUBY_PLATFORM =~ /darwin/
"<a href=\"txmt://open?url=file://#{h srcfile}&line=#{linenum}\" title=\"#{h srcfile}:#{linenum}\">#{linenum}</a>"
else
- "<a href=\"file://#{h srcfile}?line=#{linenum}\" title=\"#{h srcfile}:#{linenum}\">#{linenum}</a>"
+ "<a href=\"file://#{h srcfile}##{linenum}\" title=\"#{h srcfile}:#{linenum}\">#{linenum}</a>"
end
end
end

0 comments on commit 363b7d1

Please sign in to comment.
Something went wrong with that request. Please try again.