From 9af54de0f6b96589701fcc6487971d18a99899ec Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 12 Feb 2013 13:02:34 -0800 Subject: [PATCH] Add type of invisible as second class in span This allows hard tabs, leading whitespace, and trailing whitespace to be styled independently. --- src/app/token.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/token.coffee b/src/app/token.coffee index e141dd7bf..657e6658b 100644 --- a/src/app/token.coffee +++ b/src/app/token.coffee @@ -72,13 +72,13 @@ class Token if invisibles if @isHardTab and invisibles.tab - html = html.replace(/^./, "") + html = html.replace(/^./, "") else if invisibles.space if hasLeadingWhitespace html = html.replace /^[ ]+/, (match) -> - "" + "" if hasTrailingWhitespace html = html.replace /[ ]+$/, (match) -> - "" + "" html