At Sat, 11 Jul 2020 10:41:27 -0700 (PDT), Shriram Krishnamurthi wrote:
> My reading of the documentation for `nested-flow`
> 
> https://docs.racket-lang.org/scribble/core.html#%28def._%28%28lib._scribble%2Fc
> ore..rkt%29._make-nested-flow%29%29
> 
> is that I can use 'inset as the first argument. However, when I try to do 
> so, I get a contract error:
> 
> make-nested-flow: contract violation
> 
>   expected: style?
> 
>   given: 'inset
> 
>   in: the 1st argument of
> 
>       (-> style? (listof block?) nested-flow?)
> 
>   contract from: 
> 
>       <pkgs>/scribble-lib/scribble/core.rkt
> 
> This *looks* like it contradicts the documentation, which says that the 
> first argument is any/c:

You're right that the documentation is incorrect: It should say
`style?`. I'll fix that.

To construct a style that has 'nested as a property, use `(style #f
'(nested))` with `style` from `scribble/core`.

Helper functions like `nested` are more flexible and will auto-convert
a style-property symbol to a style, but the `nested-flow` constructor
isn't meant to do that.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/20200711114722.116%40sirmail.smtp.cs.utah.edu.

Reply via email to