1.1 --- a/ImprovedTableParser.py Sun Dec 20 00:06:00 2015 +0100
1.2 +++ b/ImprovedTableParser.py Sun Feb 16 22:37:05 2020 +0100
1.3 @@ -2,7 +2,7 @@
1.4 """
1.5 MoinMoin - ImprovedTableParser library
1.6
1.7 - @copyright: 2012, 2013, 2015 by Paul Boddie <paul@boddie.org.uk>
1.8 + @copyright: 2012, 2013, 2015, 2020 by Paul Boddie <paul@boddie.org.uk>
1.9 @license: GNU GPL (v2 or later), see COPYING.txt for details.
1.10 """
1.11
1.12 @@ -10,7 +10,7 @@
1.13 from MoinSupport import *
1.14 import re
1.15
1.16 -__version__ = "0.2.1"
1.17 +__version__ = "0.2.2"
1.18
1.19 # Regular expressions.
1.20
1.21 @@ -669,6 +669,12 @@
1.22 if column_attrs.has_key("rowcontinuation"):
1.23 del column_attrs["rowcontinuation"]
1.24
1.25 + # Convert attributes for formatting.
1.26 +
1.27 + for key, value in column_attrs.items():
1.28 + if isinstance(value, bool):
1.29 + column_attrs[key] = value and "true" or "false"
1.30 +
1.31 write(fmt.table_cell(1, column_attrs))
1.32
1.33 if sortable_heading:
2.1 --- a/PKG-INFO Sun Dec 20 00:06:00 2015 +0100
2.2 +++ b/PKG-INFO Sun Feb 16 22:37:05 2020 +0100
2.3 @@ -1,6 +1,6 @@
2.4 Metadata-Version: 1.1
2.5 Name: ImprovedTableParser
2.6 -Version: 0.2.1
2.7 +Version: 0.2.2
2.8 Author: Paul Boddie
2.9 Author-email: paul at boddie org uk
2.10 Maintainer: Paul Boddie
3.1 --- a/README.txt Sun Dec 20 00:06:00 2015 +0100
3.2 +++ b/README.txt Sun Feb 16 22:37:05 2020 +0100
3.3 @@ -106,6 +106,13 @@
3.4 MoinSupport Tested with 0.2
3.5 Source: http://hgweb.boddie.org.uk/MoinSupport
3.6
3.7 +New in ImprovedTableParser 0.2.2 (Changes since ImprovedTableParser 0.2.1)
3.8 +--------------------------------------------------------------------------
3.9 +
3.10 + * Introduced a fix for breakage caused by the attribute processing fix,
3.11 + where table attributes represented as boolean values would be presented to
3.12 + the formatter, causing failure in output preparation.
3.13 +
3.14 New in ImprovedTableParser 0.2.1 (Changes since ImprovedTableParser 0.2)
3.15 ------------------------------------------------------------------------
3.16
4.1 --- a/setup.py Sun Dec 20 00:06:00 2015 +0100
4.2 +++ b/setup.py Sun Feb 16 22:37:05 2020 +0100
4.3 @@ -8,6 +8,6 @@
4.4 author = "Paul Boddie",
4.5 author_email = "paul@boddie.org.uk",
4.6 url = "http://moinmo.in/ParserMarket/ImprovedTableParser",
4.7 - version = "0.2.1",
4.8 + version = "0.2.2",
4.9 py_modules = ["ImprovedTableParser"]
4.10 )