From 06c64fe02db2ba870882a5d3a689e04ad9524e55 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 22 Mar 2015 22:25:14 -0700 Subject: [PATCH] In the spirit of not doing things that would break our own parser. --- src/Miscellaneous/FileInfo.coffee | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Miscellaneous/FileInfo.coffee b/src/Miscellaneous/FileInfo.coffee index 1710614ce..f31f06043 100755 --- a/src/Miscellaneous/FileInfo.coffee +++ b/src/Miscellaneous/FileInfo.coffee @@ -8,11 +8,15 @@ FileInfo = node: -> return if !@file or @isClone + @file.link.previousSibling.nodeValue = '' @file.link.hidden = true - @file.link.previousSibling.nodeValue = @file.link.nextSibling.nodeValue = '' + {nextSibling} = @file.link + wrapper = $.el 'span', {hidden: true} + $.replace nextSibling, wrapper + $.add wrapper, nextSibling info = $.el 'span', className: 'file-info' - $.after @file.link.nextSibling, info FileInfo.format Conf['fileInfo'], @, info + $.after wrapper, info format: (formatString, post, outputNode) -> output = []