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

When editing a shortanswer question, answers are no longer trimmed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.6, 2.7.3, 2.8.1
    • Fix Version/s: 2.7.5, 2.8.3
    • Component/s: Quiz
    • Testing Instructions:
      Hide
      1. Go to the question bank in any course.
      2. Create a new shortanswer question
      3. Add some answers, some with leading or trailing spaces, and some without.
      4. Save the question.
      5. Edit it again, and verify that all the leading or trailing whitespace was trimmed.
      Show
      Go to the question bank in any course. Create a new shortanswer question Add some answers, some with leading or trailing spaces, and some without. Save the question. Edit it again, and verify that all the leading or trailing whitespace was trimmed.
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      If I by accident (while copying) leave spaces at the beginning/end of short question – they are not trimmed (as was earlier). This can cause hardly noticable problems

      Even if I would like to have leading spaces sometimes, I can't submit them while responding (they are trimmed there) – so no use to save them in questions answers.

      This also affects issue with giving backslash as shortanswer in CLOZE as described here https://moodle.org/mod/forum/discuss.php?d=275299#p1186876

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  2/Feb/15