From abcc232f8fb03034588f14140bf2827608efd9dc Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 22 Mar 2015 20:14:54 -0700 Subject: [PATCH] Whitespace. --- src/Miscellaneous/FileInfo.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Miscellaneous/FileInfo.coffee b/src/Miscellaneous/FileInfo.coffee index a14a1125a..1710614ce 100755 --- a/src/Miscellaneous/FileInfo.coffee +++ b/src/Miscellaneous/FileInfo.coffee @@ -5,6 +5,7 @@ FileInfo = Post.callbacks.push name: 'File Info Formatting' cb: @node + node: -> return if !@file or @isClone @file.link.hidden = true @@ -12,6 +13,7 @@ FileInfo = info = $.el 'span', className: 'file-info' $.after @file.link.nextSibling, info FileInfo.format Conf['fileInfo'], @, info + format: (formatString, post, outputNode) -> output = [] formatString.replace /%(.)|[^%]+/g, (s, c) -> @@ -21,6 +23,7 @@ FileInfo = <%= html('${s}') %> '' $.extend outputNode, <%= html('@{output}') %> + formatters: t: -> <%= html('${this.file.URL.match(/[^\/]*$/)[0]}') %> T: -> <%= html('&{FileInfo.formatters.t.call(this)}') %>