canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

SpeedGrader only previews files with CRLF line terminators

Open bsa020 opened this issue 6 years ago • 2 comments

Summary:

Steps to reproduce:

  1. Hand in a file with LF or CR line breaks as test student.
  2. As a TA, open the assignment in SpeedGrader.
  3. Try to preview the file.

Expected behavior:

Both files with CRLF (Windows), LF (Unix) and CR (Mac) line breaks should be previewed.

Actual behavior:

Only files with CRLF line breaks are previewed.

Additional notes:

Tested with .py files

bsa020 avatar Aug 30 '19 09:08 bsa020

MacOSX also use LF. Pre-MacOSX was CR.

Line Feed (Linux, MAC OSX) LF \n ASCII code 10

Carriage Return and Line Feed (Windows) CRLF \r\n ASCII code 13 and then ASCII code 10

https://stackoverflow.com/a/39259747/6383431

kalzun avatar Aug 30 '19 10:08 kalzun

Thanks for contributing to this issue. As it has been 2 years since the last activity, we are automatically closing the issue in 30 days. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please respond before the issue is closed, or post a message on the mailing list. We'll gladly take a look again!

stale[bot] avatar Jan 09 '22 01:01 stale[bot]