Skip to content
Browse files

Fixed missing line breaks in answer panels.

  • Loading branch information...
1 parent 5d612c9 commit 28dcfdd0c2cd6369f6b619391687f5aa0b00c51e @RichardMartin committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 web/js/quiz.js
View
1 web/js/quiz.js
@@ -360,6 +360,7 @@ Answer.prototype.reveal = function(isSelected, isMultiChoice, isCorrect) {
this.$answerPanel.empty();
this.$answerPanel.text(this.text);
+ this.$answerPanel.html(this.$answerPanel.html().replace(/\n/g, '<div class="break"/>'));
this.$answerPanel.append($commentPanel);
} else if (this.score > 0) {
this.$answerPanel.addClass('correct');

0 comments on commit 28dcfdd

Please sign in to comment.
Something went wrong with that request. Please try again.