summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorankitjavalkar2019-01-11 15:15:03 +0530
committerankitjavalkar2019-01-11 15:15:03 +0530
commit5389d454c202c23fb3c83798aa29fde937a5523d (patch)
tree11ae2d355f568daf3e53eddff7ef8cf078c989f5
parent7bcc57d6624696baaf314698b66c78ff3e5d11df (diff)
downloadonline_test-5389d454c202c23fb3c83798aa29fde937a5523d.tar.gz
online_test-5389d454c202c23fb3c83798aa29fde937a5523d.tar.bz2
online_test-5389d454c202c23fb3c83798aa29fde937a5523d.zip
Display the question snippet as preformatted text in Preview QuestionPaper mode
-rw-r--r--yaksh/templates/yaksh/preview_questionpaper.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/templates/yaksh/preview_questionpaper.html b/yaksh/templates/yaksh/preview_questionpaper.html
index 7293351..d6391e1 100644
--- a/yaksh/templates/yaksh/preview_questionpaper.html
+++ b/yaksh/templates/yaksh/preview_questionpaper.html
@@ -27,7 +27,7 @@
<h5><u>Question:</u></h5> <strong>{{ question.description|safe }}</strong>
<br/><b>Answer:</b><br/>
{% if question.type == "code" %}
- <div class="card">{{ question.snippet }}<br/></div>
+ <div class="card"><pre>{{ question.snippet }}</pre><br/></div>
{% endif %}
{% if question.type == "mcq" or question.type == "mcc" %}
<h5> <u>Choices:</u></h5>