Support custom `boxer_header: str` provided by `pformat_boxed_tb()` caller

aio_abandons
Tyler Goodlet 2024-12-09 16:57:22 -05:00
parent 508ba510a5
commit ad40fcd2bc
1 changed files with 3 additions and 2 deletions

View File

@ -53,6 +53,7 @@ def pformat_boxed_tb(
tb_box_indent: int|None = None, tb_box_indent: int|None = None,
tb_body_indent: int = 1, tb_body_indent: int = 1,
boxer_header: str = '-'
) -> str: ) -> str:
''' '''
@ -88,9 +89,9 @@ def pformat_boxed_tb(
tb_box: str = ( tb_box: str = (
f'|\n' f'|\n'
f' ------ - ------\n' f' ------ {boxer_header} ------\n'
f'{tb_body}' f'{tb_body}'
f' ------ - ------\n' f' ------ {boxer_header}- ------\n'
f'_|\n' f'_|\n'
) )
tb_box_indent: str = ( tb_box_indent: str = (