mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Place entire hard tab value inside span
Previously only the first character was included in the span.
This commit is contained in:
committed by
Kevin Sawicki
parent
18057e303b
commit
7ae432fad5
@@ -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
|
||||
"<span class='#{classes}'>#{@escapeString(match)}</span>"
|
||||
value = @value.replace(StartCharacterRegex, invisible.tab) if invisible.tab
|
||||
html = "<span class='#{classes}'>#{@escapeString(value)}</span>"
|
||||
else
|
||||
startIndex = 0
|
||||
endIndex = @value.length
|
||||
|
||||
Reference in New Issue
Block a user