Actually split on new lines
This commit is contained in:
@@ -9,7 +9,10 @@ export default class Output {
|
||||
|
||||
say(string) {
|
||||
const node = document.createElement("p");
|
||||
node.appendChild(document.createTextNode(string));
|
||||
string.split("\n").forEach((line) => {
|
||||
node.appendChild(document.createTextNode(line));
|
||||
node.appendChild(document.createElement("br"));
|
||||
});
|
||||
this.history.appendChild(node);
|
||||
// this.tts.speak(string);
|
||||
}
|
||||
|
Reference in New Issue
Block a user