From ac37653988764b089e41a9c9fe1c1db5887312f1 Mon Sep 17 00:00:00 2001 From: Ben Greenman Date: Sun, 24 Feb 2019 18:20:11 -0500 Subject: [PATCH] doc: explain typeset-code's #:block argument --- scribble-doc/scribblings/scribble/manual.scrbl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scribble-doc/scribblings/scribble/manual.scrbl b/scribble-doc/scribblings/scribble/manual.scrbl index e5a532be..41ada18e 100644 --- a/scribble-doc/scribblings/scribble/manual.scrbl +++ b/scribble-doc/scribblings/scribble/manual.scrbl @@ -184,13 +184,14 @@ produces the typeset result [#:keep-lang-line? keep? any/c #t] [#:line-numbers line-numbers (or/c #f exact-nonnegative-integer?) #f] [#:line-number-sep line-number-sep exact-nonnegative-integer? 1] - [#:block? block? any/c #t] + [#:block? return-block? any/c #t] [strs string?] ...) - block?]{ + (if return-block? block? element?)]{ A function-based version of @racket[codeblock], allowing you to compute the @racket[strs] arguments. Unlike @racket[codeblock], the default @racket[context] argument (@racket[#f]) implies that - the context is untouched. The other arguments are treated the same way. + the context is untouched and the @racket[return-block?] argument determines the result + structure. The other arguments are treated the same way as @racket[codeblock]. } @; ----------------------------------------