From ad40fcd2bc9187db7bb4efd71d21f9a1334b11fa Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 9 Dec 2024 16:57:22 -0500 Subject: [PATCH] Support custom `boxer_header: str` provided by `pformat_boxed_tb()` caller --- tractor/devx/pformat.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tractor/devx/pformat.py b/tractor/devx/pformat.py index 5fe9bc6..d24eaaf 100644 --- a/tractor/devx/pformat.py +++ b/tractor/devx/pformat.py @@ -53,6 +53,7 @@ def pformat_boxed_tb( tb_box_indent: int|None = None, tb_body_indent: int = 1, + boxer_header: str = '-' ) -> str: ''' @@ -88,9 +89,9 @@ def pformat_boxed_tb( tb_box: str = ( f'|\n' - f' ------ - ------\n' + f' ------ {boxer_header} ------\n' f'{tb_body}' - f' ------ - ------\n' + f' ------ {boxer_header}- ------\n' f'_|\n' ) tb_box_indent: str = (