Expand description
Functions for generating branch characters and indentation strings. Enumerator functions for tree branch characters and indentation.
This module provides the core functions for generating tree branch characters (├──, └──, etc.) and indentation strings for nested content. It includes both built-in enumerators with box-drawing characters and type definitions for custom enumerator functions.
Functions§
- default_
enumerator - Default tree enumerator using standard box-drawing characters.
- default_
indenter - Default tree indenter for nested content and multiline text.
- rounded_
enumerator - Tree enumerator using rounded box-drawing characters for the last child.
Type Aliases§
- Enumerator
- Function type for generating tree branch characters.
- Indenter
- Function type for generating indentation strings for nested tree content.
- Style
Func - Function type for generating styles based on child position.