diff options
author | ankitjavalkar | 2016-06-06 18:04:33 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-06-07 18:04:25 +0530 |
commit | 1b83aa2da97212cb839086ef5c91a6f9e68a3a36 (patch) | |
tree | e407530e371106ba37a78fcbb980659f7a75721a /yaksh/views.py | |
parent | 42a77fcf968c532dc1cb61fab9f45a9903067e61 (diff) | |
download | online_test-1b83aa2da97212cb839086ef5c91a6f9e68a3a36.tar.gz online_test-1b83aa2da97212cb839086ef5c91a6f9e68a3a36.tar.bz2 online_test-1b83aa2da97212cb839086ef5c91a6f9e68a3a36.zip |
Escape quotes in codemirror
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index 32b4545..d9d2d61 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -392,7 +392,7 @@ def show_question(request, question, paper, error_message=None): answers = paper.get_previous_answers(question) if answers: - last_attempt = "{}\n{}".format(question.snippet, answers[0].answer) + last_attempt = answers[0].answer context['last_attempt'] = last_attempt.encode('unicode-escape') # context['last_attempt'] = answers[0].answer.encode('unicode-escape') ci = RequestContext(request) |