Cleanup
parent
1c2f76f964
commit
cf556faf66
|
@ -171,10 +171,11 @@ M: block section-fits? ( section -- ? )
|
||||||
line-limit? [ drop t ] [ call-next-method ] if ;
|
line-limit? [ drop t ] [ call-next-method ] if ;
|
||||||
|
|
||||||
: pprint-sections ( block advancer -- )
|
: pprint-sections ( block advancer -- )
|
||||||
swap sections>> [ line-break? not ] filter
|
[
|
||||||
unclip pprint-section [
|
sections>> [ line-break? not ] filter
|
||||||
dup rot call pprint-section
|
unclip-slice pprint-section
|
||||||
] with each ; inline
|
] dip
|
||||||
|
[ [ pprint-section ] bi ] curry each ; inline
|
||||||
|
|
||||||
M: block short-section ( block -- )
|
M: block short-section ( block -- )
|
||||||
[ advance ] pprint-sections ;
|
[ advance ] pprint-sections ;
|
||||||
|
|
Loading…
Reference in New Issue