Correctly close scope spans when rendering line HTML

This commit is contained in:
Nathan Sobo
2014-04-02 19:23:24 -06:00
parent ab02d5f25f
commit 1b8f23722b

View File

@@ -322,6 +322,7 @@ LineComponent = React.createClass
if scopeTree.children?
html = "<span class='#{scopeTree.scope.replace(/\./g, ' ')}'>"
html += @buildScopeTreeHTML(child) for child in scopeTree.children
html += "</span>"
html
else
"<span>#{scopeTree.getValueAsHtml({})}</span>"