Handbook
Glossary
newline-after? ( section -- ? )
Factor handbook
»
Developer tools
»
The prettyprinter
»
Extending the prettyprinter
»
Prettyprinter sections
»
Prettyprinter section protocol
Prev:
unindent-first-line? ( section -- ? )
Next:
short-section? ( section -- ? )
Vocabulary
prettyprint
.
sections
Inputs
section
a
section
Outputs
?
a
boolean
Generic word contract
Outputs a boolean indicating if a newline should be output after printing this section as a
long-section
. Default implementation outputs
f
.
Definition
IN:
prettyprint.sections
GENERIC:
newline-after?
( section -- ? )
Methods
USING:
kernel
prettyprint.sections
;
M:
inset
newline-after?
drop
t
;
USING:
kernel
prettyprint.sections
;
M:
section
newline-after?
drop
f
;