Adding new lines to student feedback

Adding new lines to student feedback

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.


評比平均分數: -
In reply to John Andre

Re: Adding new lines to student feedback

Howard Miller發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 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.
評比平均分數:Useful (1)
In reply to Howard Miller

Re: Adding new lines to student feedback

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

Howard Miller發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 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

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.
評比平均分數:Useful (1)