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('')