Aportación realizada por Joseph Rézeau

Imagen de Core developers Imagen de Plugin developers Imagen de Testers Imagen de Translators

Thanks for you reply with the attached question, "P H".

Found the culprit, a classical case of invisible newline break. I suppose you first typed your question in a word processor or text editor outside of Moodle and then did a copy-paste into the Moodle cloze question editor? Anyway, this is how I managed to find the problem.

  1. Using the Moodle Atto HTML editor (things might look slightly different if you are using the TinyMCE editor)
  2. Edit your cloze question
  3. Set the width of your Moodle window so that in the question editor you can see (approximately) the line of text ending with "conquer anyone".
  4. In the ATTO editor toolbar, click the Show More|Show/HideAdvanced button on the left hand side.
  5. In the second row of buttons which is now displayed, click the HTML button on the right hand side.
  6. In the HTML display you can clearly visualize the invisible line breaks. ojos abiertos
  7. The invisible line breaks inside the text of your question do not matter, but if there are line breaks inside the answers, this will break the answer analysis, and is the cause of your reported problem.
  8. Solution #1. While in the HTML display of the Moodle editor, you can quickly spot and remove one by one those offending line breaks inside your answer texts.
  9. Solution #2.
    1. A better solution is to close the HTML view (click the HTML button)
    2. Select and Copy the whole question text
    3. Click again the HTML view button
    4. In the HTML view, select everything and paste your previous selection, which will replace the current HTML contents, but without line breaks.
    5. I've attached your "cured" question.

Conclusion. To prevent such happenings, my recommendation is to never ever copy-paste question texts from a Word Processor/Text editor outside of Moodle into Moodle. Or, if you do, to always go into the HTML view to check for unwanted imported format tags. Some of those tags are easily detected, other, such as the infamous invisible line breaks are less so.

 

 

Imagen de Core developers Imagen de Plugin developers Imagen de Testers Imagen de Translators

Here's how...

  1. Go to the Question bank
  2. Edit your Cloze question
  3. Edit Question
  4. Preview
  5. Download this question in Moodle XML format
  6. Save File (to your computer)
  7. In your next post here, attach that .XML file

Joseph

Imagen de Core developers Imagen de Plugin developers Imagen de Testers Imagen de Translators

Hi P H (what a strange user name)

It's obviously impossible for us to answer your question from that screenshot. Please export and attach the XML file of that cloze question to your next post so we can examine it.