mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
When project.showInvisibles is true; spaces, tabs and newlines are visible
This commit is contained in:
committed by
Corey Johnson & Nathan Sobo
parent
e2a917fcf3
commit
4478bbca9a
@@ -873,12 +873,13 @@ class Editor extends View
|
||||
attributePairs.push "#{attributeName}=\"#{value}\"" for attributeName, value of lineAttributes
|
||||
line.push("<pre #{attributePairs.join(' ')}>")
|
||||
|
||||
if screenLine.text == ''
|
||||
line.push(' ')
|
||||
else
|
||||
for token in screenLine.tokens
|
||||
updateScopeStack(token.scopes)
|
||||
line.push(token.escapeValue())
|
||||
for token in screenLine.tokens
|
||||
updateScopeStack(token.scopes)
|
||||
line.push(token.escapeValue(@activeEditSession.showInvisibles))
|
||||
|
||||
if @activeEditSession.showInvisibles
|
||||
line.push("<pre class='invisible'>¬</pre>")
|
||||
|
||||
line.push('</pre>')
|
||||
line.join('')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user