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

Colons are GIFT special characters but they are not escaped by "\" the escape character when exported by Moodle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.3
    • Fix Version/s: 1.7.1, 1.8
    • Component/s: Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE

      Description

      If one writes GIFT with question names, and the question name ends in a colon, then it will be recognised as the beginning of double colon that marks the end of the question name.

      Who would be so stupid as to put a colon at the end of a question name?

      Moodle does. Moodle puts colons at the end of question names. Both Moodle's exporter and the excel to GIFT converter I made, use the question as the question name and, quite a lot of questions end in colons.

      Hence a question like this (exported from moodle)

      ::Which of these are cool:::Which of these are cool:{
      =Moodle
      ~Lemons
      ~Americans
      =Franz Ferdinand
      }
      Has three colons in a row at the end of the question name.

      When this is reimported into moodle, the first two of them are thought to be the question name delimiter. This means that the question will come out as

      :Which of these are cool:
      Moodle
      Lemons
      Americans
      Franz Ferdinand

      With a colon at the front.

      One could make a special exception and check for questions that end in colons and remove that colon in the question name.

      For my money it would be more uniform to allow (not force) colons to be escaped and to escape them at least at the end of question names.

        Attachments

          Activity

            People

            • Assignee:
              howardsmiller Howard Miller
              Reporter:
              timtak Timothy Takemoto
              Tester:
              Nobody
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/Jan/07