Adding new lines to student feedback

Adding new lines to student feedback

by John Andre -
Number of replies: 4

I'm using Moodle 3.10 and grading is done externally to Moodle and then later the grades and feedback are uploaded (by pasting from spreadsheet). In general this process has been working well for years. However, I would like to see if it is possible to change something.

Currently, when I upload feedback which includes multiple lines for a single student, when it displays in Moodle all the lines are run together.

For example, if I paste:

-------------

Your strengths were:
* Great formatting
* Good overall flow

You could improve by:
* Referencing better quality sources
* Improving your grammar usage

-------------

What shows to the student is:

-------------

Your strengths were: * Great formatting * Good overall flow You could improve by: * Referencing better quality sources * Improving your grammar usage

-------------

Is there any way to get the feedback to show with the line breaks?

Thanks in advance for any advice.


Average of ratings: -
In reply to John Andre

Re: Adding new lines to student feedback

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I'm not sure... but I think your issue is that in Moodle the comments are HTML but spreadsheets (at least none I have seen) don't support HTML. So, when the browser displays the text it compresses out the extra white space.
Average of ratings:Useful (1)
In reply to Howard Miller

Re: Adding new lines to student feedback

by John Andre -
Thanks Howard. I did not even think of that. I can fix the problem just by adding some HTML to the data I import into Moodle and that will give me what I want.
In reply to John Andre

Re: Adding new lines to student feedback

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Just putting 'pre' tags around your text may be all you need.
In reply to Howard Miller

Re: Adding new lines to student feedback

by John Andre -
I tried it both ways. The pre tag does not work well.

I am sure the tag itself works fine. However, there is a problem when pasting the grades. When you paste the grades, it "flattens" out the text, which removes all the line breaks. However, adding br tags as needed works great.

Luckily, the output is coming from a program I wrote so I can easily automate this.
Average of ratings:Useful (1)