<inset ( narrow? -- )
Factor handbook » Developer tools » The prettyprinter » Extending the prettyprinter » Prettyprinter sections

Prev:<block ( -- )
Next:<flow ( -- )


Vocabulary
prettyprint.sections

Inputs
narrow?a boolean


Outputs
None

Word description
Begins an inset section. When printed as a long-section, the output format is determined by the narrow? flag. If it is f, then longer lines are favored, wrapping at the margin. Otherwise, every child section is printed on its own line.

Examples
Compare the output of printing a long quotation versus a hashtable. Quotations are printed with narrow? set to f, and hashtables are printed with narrow? set to t.

Definition