Details

Type: Bug

Status: Closed

Priority: Minor

Resolution: Fixed

Affects Version/s: 2.2.3, 2.3

Component/s: Quiz

Labels:

Testing Instructions:

Affected Branches:MOODLE_22_STABLE, MOODLE_23_STABLE

Fixed Branches:MOODLE_22_STABLE, MOODLE_23_STABLE

Pull from Repository:

Pull Master Branch:

Pull Master Diff URL:
Description
I have several hundreds of quiz questions that use TeX to render mathematical equations in Moodle 1.9.
I've just installed the new version of Moodle 2.2. I exported my question categories from Moodle 1.9 in GIF format and imported them to Moodle 2.3. During this process, Moodle 2.2 deletes one of the double backslashes that TeX uses to build mathematical Matrices.
Since I can't upload example files here, I'll leave you with an example of what happened to one of the questions:
> Question exported from Moodle 1.9
// question: 743 name: InversaCalculo_01

::InversaCalculo_01::[html]<p><span>A inversa da matriz $$A \= \left[ \{\begin\{array\}1 & 0 & 0\\0 & 1& 0\\1 & 0 & 1\\ \end\{array\}\} \right]$$ é </span></p>\n<p></p>\n<p></p>\n<p></p>{

=$$\left[ \{\begin\{array\}1 & 0 & 0\\0 & 1& 0\\1 & 0 & 1\\ \end\{array\}\} \right]$$

~%33.333%$$\left[ \{\begin\{array\}1 & 0 & 0\\0 & 1& 0\\1 & 0 & 1\\ \end\{array\}\} \right]$$

~%33.333%$$\left[ \{\begin\{array\}1 & 1 & 0\\0 & 1& 0\\1 & 0 & 1\\ \end\{array\}\} \right]$$

~%33.333%$$\left[ \{\begin\{array\}1 & 0 & 0\\0 & 1& 0\\1 & 0 & 1\\ \end\{array\}\} \right]$$

}

> Same question after importing to Moodle 2.2 (the same thing happens in Moodle 2.3)
// question: 4 name: InversaCalculo_01

::InversaCalculo_01::[html]<p><span>A inversa da matriz $$A \= \left[ \{\begin\{array\}1 & 0 & 0\0 & 1& 0\1 & 0 & 1\ \end\{array\}\} \right]$$ é </span></p>\n<p> </p>\n<p> </p>{

=<p>$$\left[ \{\begin\{array\}1 & 0 & 0\0 & 1& 0\1 & 0 & 1\ \end\{array\}\} \right]$$</p>

~<p>$$\left[ \{\begin\{array\}1 & 0 & 0\0 & 1& 0\1 & 0 & 1\ \end\{array\}\} \right]$$</p>

~<p>$$\left[ \{\begin\{array\}1 & 1 & 0\0 & 1& 0\1 & 0 & 1\ \end\{array\}\} \right]$$</p>

~<p>$$\left[ \{\begin\{array\}1 & 0 & 0\0 & 1& 0\1 & 0 & 1\ \end\{array\}\} \right]$$</p>

}

Thank you!