summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh')
-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>