Class Lisp::Format::Directives::Tabulate
In: lib/facet/lisp-format.rb
Parent: Directive

Represents the ~T (Tabulate) directive. This tabulates to a given position in the output using white-space.

Methods

execute  

Public Instance methods

The output is spaced over to a given position, depending on where it already is and parameters given to this directive.

  ~colnum,colinc:@T

with the following interpretations

colnum (1)
column to move to,
colinc (1)
number of columns to space over by if already at or beyond colnum,
@
performs relative tabulation. colnum is treated as the column to begin from (spacing over to it if necessary), and then moves over to a column that is the smallest multiple of colinc.

If output is already at or beyond colnum, then output is spaced over to column colnum + k * colinc, for the smallest k possible. An example of the @ modifiers effect is for the instance of the ~T directive ~3,8@T, which moves over three columns, and then to the first eight-sized tab-stop.

[Validate]