From bd154d2a2dc1612b7ce3a7e535247cbfe118d4cd Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Sun, 27 Sep 2020 13:02:51 -0700 Subject: [PATCH] correct contract in docs (fixes #234) --- pollen/private/ts.rktd | 2 +- pollen/scribblings/decode.scrbl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pollen/private/ts.rktd b/pollen/private/ts.rktd index 7b0431a..1c8498c 100644 --- a/pollen/private/ts.rktd +++ b/pollen/private/ts.rktd @@ -1 +1 @@ -1599432650 +1601236971 diff --git a/pollen/scribblings/decode.scrbl b/pollen/scribblings/decode.scrbl index 8ea59e1..c1431cd 100644 --- a/pollen/scribblings/decode.scrbl +++ b/pollen/scribblings/decode.scrbl @@ -302,9 +302,9 @@ The @racket[_linebreaker] argument can either be @racket[#f] (which will delete (decode-paragraphs [elements (listof xexpr?)] [paragraph-wrapper (or/c txexpr-tag? ((listof xexpr?) . -> . txexpr?)) 'p] -[#:linebreak-proc linebreak-proc ((listof xexpr?) . -> . (listof xexpr?)) decode-linebreaks] +[#:linebreak-proc linebreak-proc (txexpr-elements? . -> . txexpr-elements?) decode-linebreaks] [#:force? force-paragraph? boolean? #f]) -(listof xexpr?)] +txexpr-elements?] Find paragraphs within @racket[_elements] and wrap them with @racket[_paragraph-wrapper]. Also handle linebreaks using @racket[decode-linebreaks]. What counts as a paragraph? Any @racket[_elements] that are either a) explicitly set apart with a paragraph separator, or b) adjacent to a @racket[block-txexpr?] (in which case the paragraph-ness is implied).