Expand description
Functions§
- content_
width - Maximum width usable for body content inside a padded block.
- pad_
left - Left-pad a row’s spans with
countcells usingpad_style. - pad_
right - Right-pad a row’s spans with
countcells usingpad_style. - pad_row
- Pad a row on both sides to reach exactly
widthcolumns. - spans_
width - Width (column count) of a span slice.
- truncate_
spans - Truncate spans to
widthcolumns, appending…if anything was cut. - wrap_
spans - Wrap styled spans into rows no wider than
width, preserving explicit\nnewlines inside span text. - wrap_
text - Word-wrap plain text into rows no wider than
width. - wrap_
text_ preserving_ whitespace - Wrap plain text without normalizing whitespace.