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~
--
https://mail.python.org/mailman/listinfo/python-list