Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-6462

Cloze (multianswer) question special character issues

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.6.5, 1.7.2, 1.8, 1.9
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      I try to edit a cloze question with TeX fragments in it. For example $$ a
      over {a+2}$$. Note that all special characters '\,

      {,}

      ' are properly escaped. And it also works - I see the preview correctly.

      However, when I afterwards try to edit the question once again, all special characters do not contain backslashes in front of them. I see something like: $$ a \over

      {a+2}

      $$. The question is then not displayed correctly.

      Thus, in each editing, all backslashes needs be added again.

        Attachments

        1. questiontype1.6.php
          30 kB
        2. questiontype1.7.php
          30 kB
        3. questiontype1.8.php
          31 kB
        4. screenshot-1.jpg
          screenshot-1.jpg
          53 kB

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              fikar Miroslav Fikar
              Tester:
              Nobody
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              8 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                30/Mar/07