diff --git a/docs/demo/latest.png b/docs/demo/latest.png index 6bb8a09..66647d1 100644 Binary files a/docs/demo/latest.png and b/docs/demo/latest.png differ diff --git a/pyproject.toml b/pyproject.toml index 60dd43f..4c05658 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ncdump-rich" -version = "0.3.3" +version = "0.3.4" description = "Rich NcDump" authors = ["Eirik Enger "] license = "GPL-3.0" diff --git a/src/ncdump_rich/ncdump.py b/src/ncdump_rich/ncdump.py index 55b87a2..e5ed96c 100644 --- a/src/ncdump_rich/ncdump.py +++ b/src/ncdump_rich/ncdump.py @@ -77,7 +77,7 @@ def print_ncattr(key: str) -> None: cprint("[bold white]NetCDF Global Attributes:[/bold white]") for nc_attr in nc_attrs: if any( - len(line) > width - 8 + len(line) > width - 9 for line in str(nc_file.getncattr(nc_attr)).splitlines() ): lineend = ( @@ -94,7 +94,7 @@ def print_ncattr(key: str) -> None: [ textwrap.fill( " ".join(line.split()), - width=width - 8, + width=width - 9, tabsize=4, break_long_words=False, replace_whitespace=False, @@ -111,7 +111,7 @@ def print_ncattr(key: str) -> None: [ textwrap.fill( " ".join(line.split()), - width=width - 8, + width=width - 9, tabsize=4, break_long_words=False, replace_whitespace=False, @@ -150,7 +150,7 @@ def print_ncattr(key: str) -> None: if len(nc_vars) > 20: cprint("\t[italic white]Number of variables: [/italic white]", len(nc_vars)) cprint("\t[italic white]Variables list: [/italic white]") - pp = pprint.PrettyPrinter(width=width - 8, compact=True) + pp = pprint.PrettyPrinter(width=width - 9, compact=True) cprint(textwrap.indent(pp.pformat(nc_vars), "\t\t")) else: for var in nc_vars: