diff --git a/AUTHORS b/AUTHORS index 536b972..17bf821 100644 --- a/AUTHORS +++ b/AUTHORS @@ -26,6 +26,7 @@ This project receives help from these awesome contributors: - Andrii Kohut - Roland Walker - Doug Harris +- Benjamin Beasley Thanks ------ diff --git a/CHANGELOG b/CHANGELOG index f078662..d2a3c76 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,9 @@ # Changelog +## [Unreleased] + +- Support and require version 0.10 of `tabulate` + ## Version 2.10.1 (released on 2025-02-18) diff --git a/cli_helpers/tabular_output/tabulate_adapter.py b/cli_helpers/tabular_output/tabulate_adapter.py index 5caa55e..cf32da5 100644 --- a/cli_helpers/tabular_output/tabulate_adapter.py +++ b/cli_helpers/tabular_output/tabulate_adapter.py @@ -249,7 +249,7 @@ def adapter(data, headers, table_format=None, preserve_whitespace=False, **kwarg if table_format in supported_markup_formats: tkwargs.update(numalign=None, stralign=None) - tabulate.PRESERVE_WHITESPACE = preserve_whitespace + tkwargs.update(preserve_whitespace=preserve_whitespace) tkwargs.update(default_kwargs.get(table_format, {})) if table_format in headless_formats: diff --git a/setup.py b/setup.py index 16ecf5b..3b1cc9e 100755 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ def open_file(filename): long_description_content_type="text/x-rst", install_requires=[ "configobj >= 5.0.5", - "tabulate[widechars] >= 0.9.0", + "tabulate[widechars] >= 0.10.0", ], extras_require={ "styles": ["Pygments >= 1.6"],