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

        1. backup-moodle2-course-57-moodle37questionanswer-mdl-68761-20200521-1208-nu.mbz
          216 kB
          Michael Spall
        2. backup-moodle2-course-65-mdl-68761-20200603-0512.mbz
          719 kB
          Michael Spall
        3. backup-moodle2-course-65-questionanswer-mdl-68761-20200522-0140.mbz
          781 kB
          Michael Spall
        4. backup-moodle2-course-65-questionanswer-mdl-68761-20200522-0547.mbz
          782 kB
          Michael Spall
        5. GrantOnOneLine.png
          21 kB
          Michael Spall
        6. GrantOnTwoLines.png
          20 kB
          Michael Spall
        7. image-2020-06-05-11-04-58-314.png
          91 kB
          Janelle Barcega
        8. image-2020-06-05-11-05-00-657.png
          91 kB
          Janelle Barcega
        9. qtype_multichoice_alignment.png
          1.13 MB
          Bas Brands
        10. QuestionAnswerAlignment-37-fix.png
          1.97 MB
          Michael Spall
        11. QuestionAnswerAlignment-37-nofix.png
          2.02 MB
          Michael Spall
        12. QuestionAnswerAlignment-39-fix.png
          1.95 MB
          Michael Spall
        13. QuestionAnswerAlignment-39-nofix.png
          2.05 MB
          Michael Spall
        14. questions-Moodle37QuestionAnswer-MDL-68761-Default for Moodle37QuestionAnswer-MDL-68761-20200521-1207.xml
          280 kB
          Michael Spall
        15. questions-QuestionAnswer-MDL-68761-Default for QuestionAnswer-MDL-68761-20200522-0140.xml
          280 kB
          Michael Spall
        16. questions-QuestionAnswer-MDL-68761-top-20200522-0550.xml
          561 kB
          Michael Spall

          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