line-break
Factor handbook » Developer tools » The prettyprinter » Extending the prettyprinter » Prettyprinter sections

Prev:section
Next:text ( string -- )


Vocabulary
prettyprint.sections

Inputs
None

Outputs
None

Word description
Adds a section introducing a line break to the current block. If the block is output as a short-section, all breaks are ignored. Otherwise, hard breaks introduce unconditional newlines, and soft breaks introduce a newline if the position is more than half of the margin.

Notes
This word should only be called from inside the with-pprint combinator.

Definition


Methods