# HG changeset patch # User Nicholas Jillings # Date 1442308594 -3600 # Node ID 57708aa826bb91b540d63c30ffdb0c78f0287c56 # Parent fb41d65cc89fe2a58ccaf76d6c4f3f3a662d02eb Bug #1389: Statements also wrapped correctly diff -r fb41d65cc89f -r 57708aa826bb 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');