mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
fixing multiline feedback
This commit is contained in:
@@ -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("...");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user