lib/proto/public/error.zmr in ramaze-0.0.9 vs lib/proto/public/error.zmr in ramaze-0.1.0

- old
+ new

@@ -33,18 +33,18 @@ if @coderay code = lines.map{|no, code, cur| code}.join("\n") options = { :wrap => :div, :line_numbers => :inline, - :line_number_start => (lineno.to_i - Global.inform_backtrace_size) + :line_number_start => (lineno.to_i - Global.backtrace_size) } ?> #{CodeRay.scan(code, :ruby).html(options)} <?r else ?> <?r lines.each do |llineno, lcode, lcurrent| ?> <tr class="source" #{'style="background:#faa;"' if lcurrent}> <td>#{llineno}</td> - <td><pre>#{lcode.rstrip}</pre></td> + <td><pre>#{lcode.to_s.rstrip}</pre></td> </tr> <?r end ?> <?r end ?> </table> </div>