euporie.core.ft.utils.explode_text_fragments

euporie.core.ft.utils.explode_text_fragments(fragments: Iterable[_T]) _ExplodedList[_T]

Turn a list of (style_str, text) tuples into another list where each string is exactly one character.

It should be fine to call this function several times. Calling this on a list that is already exploded, is a null operation.

Parameters:

fragments – List of (style, text) tuples.