From 98657cc2a25b6ba2abe6ee86a50ad3ef90f403b6 Mon Sep 17 00:00:00 2001 From: Gerome Fournier Date: Tue, 13 Jul 2021 19:20:19 +0200 Subject: [PATCH] Delete cached _hline_string when deco is modified --- CHANGELOG.md | 3 +++ PKG-INFO | 4 ++-- README.md | 4 ++-- setup.py | 4 ++-- texttable.py | 3 ++- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d1d65f..face747 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Version History +v1.6.4 (2021-07-13) +* Fix alignment bug when deco is modified (https://github.com/foutaise/texttable/issues/76) + v1.6.3 (2020-09-06) * Improve int conversion (https://github.com/foutaise/texttable/issues/70) diff --git a/PKG-INFO b/PKG-INFO index 8b042d0..62f8a17 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,12 +1,12 @@ Metadata-Version: 1.0 Name: texttable -Version: 1.6.3 +Version: 1.6.4 Summary: module for creating simple ASCII tables Home-page: https://github.com/foutaise/texttable/ Author: Gerome Fournier Author-email: jef@foutaise.org License: MIT -Download-URL: https://github.com/foutaise/texttable/archive/v1.6.3.tar.gz +Download-URL: https://github.com/foutaise/texttable/archive/v1.6.4.tar.gz Description: texttable is a module to generate a formatted text table, using ASCII characters. Platform: any diff --git a/README.md b/README.md index 471a23e..fbe6da4 100644 --- a/README.md +++ b/README.md @@ -219,10 +219,10 @@ DATA __author__ = 'Gerome Fournier ' __credits__ = 'Jeff Kowalczyk:\n - textwrap improved import\n ...at... __license__ = 'MIT' - __version__ = '1.6.3' + __version__ = '1.6.4' VERSION - 1.6.3 + 1.6.4 AUTHOR Gerome Fournier diff --git a/setup.py b/setup.py index 1fd663f..25b08fd 100644 --- a/setup.py +++ b/setup.py @@ -12,11 +12,11 @@ setup( name="texttable", - version="1.6.3", + version="1.6.4", author="Gerome Fournier", author_email="jef@foutaise.org", url="https://github.com/foutaise/texttable/", - download_url="https://github.com/foutaise/texttable/archive/v1.6.3.tar.gz", + download_url="https://github.com/foutaise/texttable/archive/v1.6.4.tar.gz", license="MIT", py_modules=["texttable"], description=DESCRIPTION, diff --git a/texttable.py b/texttable.py index 8b062ae..cbf130e 100644 --- a/texttable.py +++ b/texttable.py @@ -63,7 +63,7 @@ __author__ = 'Gerome Fournier ' __license__ = 'MIT' -__version__ = '1.6.3' +__version__ = '1.6.4' __credits__ = """\ Jeff Kowalczyk: - textwrap improved import @@ -262,6 +262,7 @@ def set_deco(self, deco): """ self._deco = deco + self._hline_string = None return self def set_header_align(self, array):