euporie.core.ft.utils.split_lines

euporie.core.ft.utils.split_lines(fragments: StyleAndTextTuples) Iterable[StyleAndTextTuples]

Take a single list of (style_str, text) tuples and yield one such list for each line. Just like str.split, this will yield at least one item.

Parameters

fragments – List of (style_str, text) or (style_str, text, mouse_handler) tuples.