Module enumerator

Source
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.
StyleFunc
Function type for generating styles based on child position.