section
Factor handbook » Developer tools » The prettyprinter » Extending the prettyprinter » Prettyprinter sections

Prev:with-pprint ( obj quot -- )
Next:line-break


Vocabulary
prettyprint.sections

Class description
A piece of prettyprinter output. Instances of this class are not used directly, instead one instantiates various subclasses of this class:
text
line-break
block
inset
flow
colon

Instances of this class have the following slots:
start - the start of the section, measured in characters from the beginning of the prettyprinted output
end - the end of the section, measured in characters from the beginning of the prettyprinted output
start-group? - see start-group
end-group? - see end-group
style - character and/or paragraph styles to use when outputting this section. See Text styles
overhang - number of columns which must be left blank before the wrap margin for the prettyprinter to consider emitting this section as a short-section. Avoids lone hanging closing brackets


Definition

TUPLE: section
start end start-group? end-group? style overhang ;


Methods