From 7ae432fad50ae57092b65543f0b07ee58471ffab Mon Sep 17 00:00:00 2001 From: Kevin Sawicki & Nathan Sobo Date: Thu, 5 Dec 2013 17:09:24 -0800 Subject: [PATCH] Place entire hard tab value inside span Previously only the first character was included in the span. --- src/token.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/token.coffee b/src/token.coffee index 336c45e72..3c6793b98 100644 --- a/src/token.coffee +++ b/src/token.coffee @@ -135,9 +135,8 @@ class Token classes = 'hard-tab' classes += ' indent-guide' if hasIndentGuide classes += ' invisible-character' if invisibles.tab - html = @value.replace StartCharacterRegex, (match) => - match = invisibles.tab ? match - "#{@escapeString(match)}" + value = @value.replace(StartCharacterRegex, invisible.tab) if invisible.tab + html = "#{@escapeString(value)}" else startIndex = 0 endIndex = @value.length