Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dan Holtby
uwaterloo-racket
Commits
3eb1d649
Commit
3eb1d649
authored
Nov 15, 2020
by
djholtby
Browse files
change box comments to be replaced with semicolon blocks
parent
342dcf04
Changes
1
Hide whitespace changes
Inline
Side-by-side
graphic-block/graphic-block.rkt
View file @
3eb1d649
...
...
@@ -139,6 +139,8 @@
[
else
; to any CS135 students reading this: else cond isn't always terrible
(
cond
[(
number-snip:is-number-snip?
snip
)
(
write
(
number-snip:get-number
snip
)
new-text
)]
[(
is-a?
snip
comment-box:snip%
)
(
fprintf
new-text
"~a\n"
(
send
snip
get-text
0
(
send
snip
get-count
)))]
[
else
(
fprintf
new-text
"#|Failed to insert ~v|#"
snip
)])
(
loop
(
send
snip
next
)
;; this also happens in the else ;)
new-text
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment