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

When editing a shortanswer question, answers are no longer trimmed

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.6, 2.7.3, 2.8.1
    • 2.7.5, 2.8.3
    • Quiz
    • MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • 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.

    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

              timhunt Tim Hunt
              jurgis Jurgis Pralgauskis
              Oleg Sychev Oleg Sychev
              Dan Poltawski Dan Poltawski
              Ankit Agarwal Ankit Agarwal
              Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                2/Feb/15