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

When editing a shortanswer question, answers are no longer trimmed

XMLWordPrintable

    • 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.

      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

            timhunt Tim Hunt
            jurgis Jurgis Pralgauskis
            Oleg Sychev Oleg Sychev
            Dan Poltawski Dan Poltawski
            Ankit Agarwal Ankit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.