# HG changeset patch # User Jittat Fakcharoenphol # Date 2012-10-19 12:10:56 # Node ID fee7f57d2bbe859813df9677b11ab981ce632298 # Parent 358ad0e58c64bb1f89d0f2533a40cabe8c29edee fixed calls to truncate diff --git a/app/views/graders/submission.html.haml b/app/views/graders/submission.html.haml --- a/app/views/graders/submission.html.haml +++ b/app/views/graders/submission.html.haml @@ -18,5 +18,5 @@ %div{:style => "border: 1px solid black; background: lightgrey"} - if @submission.source %pre - =h truncate(@submission.source,10240) + =h truncate @submission.source, :length => 10240