diff options
author | Alexander_Kabui | 2024-09-10 13:56:27 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-09-10 13:56:27 +0300 |
commit | 4f4d82de9c8575d6192f998be02378c23b66556f (patch) | |
tree | 6f71f92f1fd66602c4c4d1a023dfeab4fe79935f /gn2/wqflask/templates | |
parent | 570410a0e8a18099a53f412c0016962d7607ab71 (diff) | |
download | genenetwork2-4f4d82de9c8575d6192f998be02378c23b66556f.tar.gz |
Use white-space pre-line to show newlines for answer.
Diffstat (limited to 'gn2/wqflask/templates')
-rw-r--r-- | gn2/wqflask/templates/gnqa_answer.html | 10 |
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" |