The Atto editor inserts a line break in the text approximately every 255 characters when the text is enclosed in a <p> or <div> element, or not enclosed. This does not happen when the text is enclosed in a <span> element.
In general, this does not adversely affect the questions. There is, however, a case where this behaviour causes a problem.
When the line break generated by the Atto editor cuts a short answer sub-question, the sub-question no longer works correctly.
This behaviour of the Atto editor can be considered a bug. However, by the time it is fixed, the problem can be avoided by simply enclosing the short answer sub-questions in <span> elements.
The <span> can enclose only the short answer sub-questions (as demonstrated in Example 2 below):
<p> Phoenix is is Arizona, in the United States of America. Sante Fe is in New Mexico. Sacramento, San Francisco, San Jose and San Diego are in California. The largest city in California, whose name begins with "Los", is: <span>{1:SA:=Los Angeles#Correct}</span>. </p>
or the <span> element can enclose all the text of the paragraph where the short answer sub-questions are located. This way is slightly faster if the paragraph contains more than one short answer sub-question. Both ways prevent the sub-questions from being cut by a line break:
<p> <span> Phoenix is is Arizona, in the United States of America. Sante Fe is in New Mexico. Sacramento, San Francisco, San Jose and San Diego are in California. The largest city in California, whose name begins with "Los", is: {1:SA:=Los Angeles#Correct}. </span> </p>
Note that this problem does not occur if the question is edited using the "Plain text area" editor.
In the first example below, the line break generated by the Atto editor cuts the short answer sub-question. In the second example, the cut is prevented by enclosing the sub-question between <span></span> tags.
Short answer NOT enclosed in a <span> element
In this first example, the sub-question is not enclosed in a <span> element. Download the question and upload it to your site. The question will work correctly. Then edit the question with the Atto editor, for example simply by changing Phoenix to Tucson. The question will no longer work because of the line break through the sub-question at the 255th character of the <p> element.
Short answer enclosed in a <span> element
This second example is identical to the first one, except that the short answer sub-question is enclosed in a <span> element. Download the question and upload it to your site. The question will work correctly. Then edit the question with the Atto editor, for example by simply changing Phoenix to Tucson. The question will still work since the line break is prevented within the <span> element.
© 2019-2025 Dynamic Courseware (Dominique Bauer)
Documentation: CC0 1.0 Universal - No copyright
Remixes for Moodle: CC BY-NC-SA 4.0 Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
Contact request sent
Personal space
Save draft messages, links, notes etc. to access later.
No starred conversations
No group conversations
No private conversations
No results
Search people and messages
You can restrict who can message you
You have blocked this user.
You are unable to message this user