[Mostly OT] Feedback on Python homework using Canvas LMS
Ethan Furman
ethan at stoneleaf.us
Mon Mar 16 16:01:14 EDT 2020
On 03/16/2020 11:31 AM, Irv Kalb wrote:
> The problem is that in the feedback section for homework assignments, Canvas
> eliminates any leading space characters. So, I might write:
>
> if x == y:
> # do thing 1
> else:
> # do thing 2
>
> but when it gets posted and viewed by the student, it shows up as:
>
> if x == y:
> # do thing 1
> else:
> # do thing 2
Sounds like HTML display -- have you tried enclosing your snippets in <pre></pre> or <code></code> tags?
If that fails, are embedded spaces retained? If so, maybe
.if x == y
. # do thing 1
.else:
. # do thing 2
That would make less work after copy pasting, at least.
--
~Ethan~
More information about the Python-list
mailing list