fix: correct question parsing/building after use of styling. TNL-10413.

This commit is contained in:
Ken Clary
2023-02-02 12:43:54 -05:00
parent 74b2b76beb
commit ea6c2c6658
3 changed files with 27 additions and 1 deletions

View File

@@ -274,7 +274,10 @@ export class OLXParser {
}
parseQuestions(problemType) {
const builder = new XMLBuilder();
const options = {
ignoreAttributes: false,
};
const builder = new XMLBuilder(options);
const problemObject = _.get(this.problem, problemType);
let questionObject = {};
/* TODO: How do we uniquely identify the label and description?