add text on spaces (#3049)

Merging this. Please feel free to revert this change if it's not the right thing.
This commit is contained in:
John Clements 2020-02-23 09:40:20 -08:00 committed by GitHub
parent ef856eda76
commit b63e9a4983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -372,6 +372,26 @@ readability, consider refactoring your program to introduce auxiliary
functions so that you can shorten these long blocks of code. If nothing
else helps, consider using (potentially) empty comment lines.
In addition, every pair of expressions on a line should have at least one
space between the two, even if theyre separated by parentheses.
@compare[
@racketmod[#:file
@tt{good}
racket
(define (f x g)
[(< x 3) (g (g 3))])
]
@filebox[@tt{bad}
@codeblock{#lang racket
(define(f x g)
[(< x 3)(g(g 3))])
}]
]
@; -----------------------------------------------------------------------------
@section{End of File}