# HG changeset patch # User Nicholas Jillings # Date 1442308594 -3600 # Node ID 74485fc481e1ddcb9bcdbee7710b9eb6d962fb7f # Parent 0782ef0680462ff22555e60c00aaddf2421a44d4 Bug #1389: Statements also wrapped correctly diff -r 0782ef068046 -r 74485fc481e1 core.js --- a/core.js Tue Sep 15 10:13:20 2015 +0100 +++ b/core.js Tue Sep 15 10:16:34 2015 +0100 @@ -165,7 +165,10 @@ var node = this.popupOptions[this.currentIndex]; this.popupResponse.innerHTML = null; if (node.type == 'statement') { - this.popupTitle.textContent = node.statement; + this.popupTitle.textContent = null; + var statement = document.createElement('span'); + statement.textContent = node.statement; + this.popupResponse.appendChild(statement); } else if (node.type == 'question') { this.popupTitle.textContent = node.question; var textArea = document.createElement('textarea');