From 1567e6e134f1f59de31274076387e76a60e5fd0f Mon Sep 17 00:00:00 2001 From: Stephan Porada Date: Thu, 16 Apr 2020 13:49:21 +0200 Subject: [PATCH] Filx text break --- app/static/js/nopaque.lists.js | 6 ++---- app/templates/corpora/analyse_corpus.html.j2 | 4 +++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/static/js/nopaque.lists.js b/app/static/js/nopaque.lists.js index 03b1e127..202a854f 100644 --- a/app/static/js/nopaque.lists.js +++ b/app/static/js/nopaque.lists.js @@ -258,9 +258,8 @@ class ResultsList extends List { console.log(tokenHTMLArray); console.log(uniqueS); - partElement = document.createElement("div"); for (let sId of uniqueS) { - let htmlSentence = `
`; + let htmlSentence = ``; let sentenceElement = this.HTMLTStrToElement(htmlSentence); for (let tokenElement of tokenHTMLArray) { if (tokenElement.dataset.sid == sId) { @@ -270,9 +269,8 @@ class ResultsList extends List { continue; } } - partElement.appendChild(sentenceElement); + contextResultsElement.appendChild(sentenceElement); } - contextResultsElement.appendChild(partElement); if (expertModeSwitchElement.checked) { this.expertModeOn(); diff --git a/app/templates/corpora/analyse_corpus.html.j2 b/app/templates/corpora/analyse_corpus.html.j2 index 02f30024..83831de2 100644 --- a/app/templates/corpora/analyse_corpus.html.j2 +++ b/app/templates/corpora/analyse_corpus.html.j2 @@ -243,7 +243,9 @@
-
+
+
Context
+