diff --git a/course/page/choice.py b/course/page/choice.py index 0324745b6fd22431f33eb4ebf0a148f46ed8162e..b59669c86293e660410b347d9cf0864b7d05d8ab 100644 --- a/course/page/choice.py +++ b/course/page/choice.py @@ -572,13 +572,15 @@ class MultipleChoiceQuestion(ChoiceQuestionBase): corr_idx_list = self.unpermuted_correct_indices() always_correct_idx_list = self.unpermuted_always_correct_indices() - result = (string_concat( - string_concat(_("The correct answer is"), ": %s.") - % self.get_answer_html(page_context, corr_idx_list), - string_concat(_("Additional acceptable options are"), - ": %s.") - % self.get_answer_html(page_context, - always_correct_idx_list))) + result = (string_concat(_("The correct answer is"), ": %s") + % self.get_answer_html(page_context, corr_idx_list)) + + if len(always_correct_idx_list) > 0: + result = (string_concat(result, + string_concat(_("Additional acceptable options are"), + ": %s") + % self.get_answer_html(page_context, + always_correct_idx_list))) if hasattr(self.page_desc, "answer_explanation"): result += markup_to_html(page_context, self.page_desc.answer_explanation)