about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-10 13:56:27 +0300
committerAlexander_Kabui2024-09-10 13:56:27 +0300
commit4f4d82de9c8575d6192f998be02378c23b66556f (patch)
tree6f71f92f1fd66602c4c4d1a023dfeab4fe79935f
parent570410a0e8a18099a53f412c0016962d7607ab71 (diff)
downloadgenenetwork2-4f4d82de9c8575d6192f998be02378c23b66556f.tar.gz
Use white-space pre-line to show newlines for answer.
-rw-r--r--gn2/wqflask/templates/gnqa_answer.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/gn2/wqflask/templates/gnqa_answer.html b/gn2/wqflask/templates/gnqa_answer.html
index 7a637b20..25b8f107 100644
--- a/gn2/wqflask/templates/gnqa_answer.html
+++ b/gn2/wqflask/templates/gnqa_answer.html
@@ -1,9 +1,17 @@
+{% block css %}
+<style>
+  
+#gnqa-answer-box {
+      white-space: pre-line;
+  }
+</style>
+{% endblock %}
 <section class="container-fluid answers gnqa-copy">
     <div class="row container gnqa-answer" style="margin-bottom: 1em">
         <p class="row lead">
             <mark style="font-family: 'Linux Libertine','Georgia','Times','Source Serif Pro',serif"><b><i>{{ query }}</i></b></mark>
             <br />
-            {{ answer|safe }}
+            <span id="gnqa-answer-box">{{ answer|safe }}</span>
         </p>
         <div class="rating row" data-doc-id="{{ query }}">
             <button class="btn"