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

Multiple choice question answers in Moodle 3.9 start on second line

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Please test this in browsers Chrome, Firefox, Safari and IE / Edge

      1. Login as Admin
      2. Create a new Quiz and add a multiple choice question
      3. For choice 1 add and image
      4. For choice 2 add a paragraph of text
      5. For choice 3 add an audio file
      6. For choice 4 add a single word
      7. Preview / Attempt the quiz
      8. Verify the checkboxes, labels (a., b., c.) and the question content all align to the top.

      See this example:

      Show
      Please test this in browsers Chrome, Firefox, Safari and IE / Edge Login as Admin Create a new Quiz and add a multiple choice question For choice 1 add and image For choice 2 add a paragraph of text For choice 3 add an audio file For choice 4 add a single word Preview / Attempt the quiz Verify the checkboxes, labels (a., b., c.) and the question content all align to the top. See this example:
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-68761-master

      Description

      In Moodle 3.9 Multiple choice question answers in Moodle 3.9 start on the second line instead of on the same line as the answer choice numbering. The answers look like this:
      a.
      Washington
      b.
      Adams

      instead of like:
      a. Washington
      b. Adams

      This because of how the editor creates default paragraph elements now:
      <p dir="ltr" style="text-align: left;">Washington</p>
      If you edit the HTML to:
      <p>Washington</p>
      The answers will display correctly. This was tested in multiple browsers and operating systems. I tested on Moodle 3.7 and if I copy the 3.9 answer style,<p dir="ltr" style="text-align: left;">, it also shows this issue.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              basbrands Bas Brands
              Reporter:
              mspall Michael Spall
              Peer reviewer:
              Simey Lameze
              Integrator:
              Jake Dallimore
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Bas Brands
              Votes:
              4 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Jun/20

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 55 minutes
                  3h 55m