euporie.core.ft.html.concat
- euporie.core.ft.html.concat(ft_a: StyleAndTextTuples, ft_b: StyleAndTextTuples, baseline_a: int = 0, baseline_b: int = 0, style: str = '') tuple[StyleAndTextTuples, int]
Concatenate two blocks of formatted text, aligning at a given baseline.
- Parameters:
ft_a – The first block of formatted text to combine
ft_b – The second block of formatted text to combine
baseline_a – The row to use to align the first block of formatted text with the second, counted in lines down from the top of the block
baseline_b – The row to use to align the second block of formatted text with the second, counted in lines down from the top of the block
style – The style to use for any extra lines added
- Returns:
A tuple containing the combined formatted text and the new baseline position