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

In QUIZ: trimming students's short answers of all extra spaces within the answer (even between words)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7.2
    • Fix Version/s: BACKEND
    • Component/s: Quiz
    • Labels:
    • Affected Branches:
      MOODLE_27_STABLE

      Description

      Hello,
      In Quiz, with short answers,
      at the moment, when the expected answer is "the cat" and the received answer is " the cat" the answer is considered as wrong. Joseph Réseau has created a parch that works for M1.9 and Tim Hunt sees no reason why it should not be made standard in M2. (see here :https://moodle.org/mod/forum/discuss.php?d=272781#p1174176).

      Besides, another trimming should be: removing extra spaces before punctuation; so that when the expected answer is "The sun is shining." an answer such as "The sun is shining ." would be accepted.

      Many thanks for looking into this.
      Philippe

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            decloitre DECLOITRE
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: