Source code for tablate.library.formatters.html.style.attributes.text

from tablate.type.defaults import html_text_size_default


[docs] def text_align_attr(text_align: str): pass
[docs] def text_style_attr(text_style: str): pass
[docs] def text_color_attr(text_color: str): pass
[docs] def text_size_attr(text_size: str, px_multiplier: int = None): if text_size is None: text_size = html_text_size_default if px_multiplier is not None: text_size = text_size * px_multiplier return f"{text_size}px"