Skip to content

Commit

Permalink
add line number anchors to annotated output
Browse files Browse the repository at this point in the history
  • Loading branch information
dj2 authored and Jake Scruggs committed Mar 1, 2011
1 parent c5b9d53 commit fa8de67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/templates/awesome/awesome_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def write
report.each_pair do |section, contents|
if template_exists?(section)
create_instance_var(section, contents)
create_instance_var(:per_file_data, per_file_data)
@html = erbify(section)
html = erbify('layout')
fn = output_filename(section)
Expand Down Expand Up @@ -55,7 +56,7 @@ def write_file_data
out << "&nbsp;"
end
out << "</td>"
out << "<td valign='top'>#{convertor.convert(line)}</td>"
out << "<td valign='top'><a name='line#{idx + 1}'>#{convertor.convert(line)}</a></td>"
out << "</tr>"
end
out << "<table></body></html>"
Expand Down

0 comments on commit fa8de67

Please sign in to comment.