From dd5a10e82e358f6c9eef9a9d5968f024ebc079d1 Mon Sep 17 00:00:00 2001 From: Corey Johnson & Nathan Sobo Date: Thu, 18 Oct 2012 10:32:59 -0700 Subject: [PATCH] :lipstick: --- src/app/editor.coffee | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/app/editor.coffee b/src/app/editor.coffee index 0059d7cb3..5ecb3dbfd 100644 --- a/src/app/editor.coffee +++ b/src/app/editor.coffee @@ -873,16 +873,14 @@ class Editor extends View attributePairs.push "#{attributeName}=\"#{value}\"" for attributeName, value of lineAttributes line.push("
")
 
-    unless screenLine.text == ''
+    if screenLine.text == ''
+      line.push(" ") unless @activeEditSession.showInvisibles
+    else
       for token in screenLine.tokens
         updateScopeStack(token.scopes)
         line.push(token.escapeValue(@activeEditSession.showInvisibles))
 
-    if @activeEditSession.showInvisibles
-      line.push("")
-    else if screenLine.text == ''
-      line.push(" ")
-
+    line.push("") if @activeEditSession.showInvisibles
     line.push('
') line.join('')