         #thanks http://stackoverflow.com/a/12213072/112871
         (record) ->
             date = new Date(Date.parse(record[col]))
-            formatString.replace /%(.)/g, (m, p) -> 
+            formatString.replace /%(.)/g, (m, p) ->
                 switch p
                     when "y" then date.getFullYear()
                     when "m" then zeroPad(date.getMonth()+1)

    catch e
        console.error(e.stack)
        result = opts.localeStrings.computeError
    
    @html result
    return this


            agg = @allTotal
        else if rowKey.length == 0
            agg = @colTotals[flatColKey]
        else if colKey.length == 0
            agg = @rowTotals[flatRowKey]
        else
            agg = @tree[flatRowKey][flatColKey]
