diff --git a/collects/handin-server/doc.txt b/collects/handin-server/doc.txt index 94d191ca71..89b411fd7a 100644 --- a/collects/handin-server/doc.txt +++ b/collects/handin-server/doc.txt @@ -713,7 +713,7 @@ Keywords for configuring `check:': * :maxwidth -- a number that specifies maximum line lengths for submissions (a helpful feature for reading student code). Defaults - to 80. This feature can be disabled if set to #f. + to 79. This feature can be disabled if set to #f. * :output -- the name of the original handin file (unrelated to the text-converted files). Defaults to "hw.scm". diff --git a/collects/handin-server/extra-utils.ss b/collects/handin-server/extra-utils.ss index bae9c8c2da..763cd6e25a 100644 --- a/collects/handin-server/extra-utils.ss +++ b/collects/handin-server/extra-utils.ss @@ -63,7 +63,7 @@ w (loop (cdr l) (if (char=? #\tab (car l)) (+ 8 (- w (modulo w 8))) (add1 w)))))) - (unless (< (bytes-length line) len) + (unless (<= (bytes-length line) len) (let ([line (bytes->string/utf-8 line)]) (unless (or (< (string-length line) len) (< (string-width line) len)) @@ -246,7 +246,7 @@ [teachpacks* (get ':teachpacks #''())] [create-text?* (get ':create-text? #'#t)] [textualize?* (get ':textualize? #'#f)] - [maxwidth* (get ':maxwidth #'80)] + [maxwidth* (get ':maxwidth #'79)] [student-line* (get ':student-line #'"Student: {username} ({Full Name} <{Email}>)")]