# HG changeset patch # User Nicholas Jillings # Date 1442308594 -3600 # Node ID bcfce203ec918cdda1313acb355fca6e0c81b8fd # Parent 1de7962275319ddad595a642ff82976b9f799fde Bug #1389: Statements also wrapped correctly diff -r 1de796227531 -r bcfce203ec91 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');