Render nbsp on empty lines to ensure they have a non-zero height

Fixes #2958
This commit is contained in:
Nathan Sobo
2014-07-13 14:51:06 -06:00
parent 608c2b5354
commit cdb5fe15d2
2 changed files with 2 additions and 2 deletions

View File

@@ -233,7 +233,7 @@ describe "EditorComponent", ->
expect(component.lineNodeForScreenRow(0).textContent).toBe "a line that ends with a carriage return#{invisibles.cr}#{invisibles.eol}"
it "renders invisible line-ending characters on empty lines", ->
expect(component.lineNodeForScreenRow(10).textContent).toBe invisibles.eol
expect(component.lineNodeForScreenRow(10).textContent).toBe nbsp + invisibles.eol
it "interleaves invisible line-ending characters with indent guides on empty lines", ->
component.setShowIndentGuide(true)