add a note about "" in with-compound-rewriter

This commit is contained in:
Robby Findler 2012-09-09 23:45:18 -05:00
parent adceb4322a
commit 0fd52435a4

View File

@ -2773,8 +2773,8 @@ its head.
The result list is constrained to have at most 2 adjacent The result list is constrained to have at most 2 adjacent
non-@racket[lw]s. That list is then transformed by adding non-@racket[lw]s. That list is then transformed by adding
@racket[lw] structs for each of the non-@racket[lw]s in the @racket[lw] structs for each of the non-@racket[lw]s in the
list (see the description of @racket[lw] below for an list (see the text just below the description of @racket[lw] for a
explanation of logical-space): explanation of logical space):
@itemize[ @itemize[
@item{ @item{
@ -2798,6 +2798,13 @@ explanation of logical-space):
absorbed by a new @racket[lw] that renders using no absorbed by a new @racket[lw] that renders using no
actual space in the typeset version. actual space in the typeset version.
}] }]
One useful way to take advantage of @racket[with-compound-rewriters]
is to return a list that begins and ends with @racket[""] (the
empty string). In that situation, any extra logical space that
would have been just outside the sequence is replaced with an
@racket[lw] that does not draw anything at all.
} }
@defform[(with-compound-rewriters ([name-symbol proc] ...) @defform[(with-compound-rewriters ([name-symbol proc] ...)