+
-
-
- {question.incorrectComments}
-
+
)}
{question.neutralComments && (
-
+
...
-
- {question.neutralComments}
-
+
)}
diff --git a/src/features/local/parsingTests/quizMarkdown/questionFeedback.test.ts b/src/features/local/parsingTests/quizMarkdown/questionFeedback.test.ts
index 5371e3b..18e1e94 100644
--- a/src/features/local/parsingTests/quizMarkdown/questionFeedback.test.ts
+++ b/src/features/local/parsingTests/quizMarkdown/questionFeedback.test.ts
@@ -319,5 +319,6 @@ essay
expect(firstQuestion.questionType).toBe(QuestionType.ESSAY);
expect(firstQuestion.text).not.toContain("this is general feedback");
expect(firstQuestion.neutralComments).toBe("this is general feedback");
+ expect(firstQuestion.neutralComments).not.toContain("...");
});
});
diff --git a/src/features/local/quizzes/models/utils/quizFeedbackMarkdownUtils.ts b/src/features/local/quizzes/models/utils/quizFeedbackMarkdownUtils.ts
index 78fab5d..a5aabfd 100644
--- a/src/features/local/quizzes/models/utils/quizFeedbackMarkdownUtils.ts
+++ b/src/features/local/quizzes/models/utils/quizFeedbackMarkdownUtils.ts
@@ -70,12 +70,15 @@ export const quizFeedbackMarkdownUtils = {
.replace(feedbackIndicators[currentFeedbackType], "")
.trim();
comments[currentFeedbackType].push(lineWithoutIndicator);
+
} else if (lineFeedbackType !== "none") {
+
const lineWithoutIndicator = line
.replace(feedbackIndicators[lineFeedbackType], "")
.trim();
currentFeedbackType = lineFeedbackType;
comments[lineFeedbackType].push(lineWithoutIndicator);
+
} else {
otherLines.push(line);
}