lib/relevance/tarantula/html_report_helper.rb in tarantula-0.0.5 vs lib/relevance/tarantula/html_report_helper.rb in tarantula-0.0.8.1

- old
+ new

@@ -5,30 +5,20 @@ def wrap_in_line_number_table(text, &blk) x = Builder::XmlMarkup.new x.table(:class => "grid tablesorter") do x.thead do x.tr do - x.th(:class => "sort asc") do + x.th(:class => "line-number") do x.span("Line \#") - x.span(:class => "sort") do - x.em do - x << '&#8613;' - end - end end - x.th(:class => "sort left") do + x.th(:align => "center") do x.span("Line") - x.span(:class => "sort") do - x.em do - x << '&#8613;' - end - end end end end text.split("\n").each_with_index do |line, index| x.tr do - x.td(index+1) + x.td(index+1, :class => "line-number") if block_given? x.td {x << yield(line)} else x.td(line) end