# HG changeset patch # User Paul Boddie # Date 1581889025 -3600 # Node ID b81620a4d58322b95c508410da3de46461c8d8eb # Parent fbbdfe6014732a9f0ded290c8a197837887a551e Fixed handling of boolean attributes presented inadvertently to the formatter. diff -r fbbdfe601473 -r b81620a4d583 ImprovedTableParser.py --- a/ImprovedTableParser.py Sun Dec 20 00:06:00 2015 +0100 +++ b/ImprovedTableParser.py Sun Feb 16 22:37:05 2020 +0100 @@ -2,7 +2,7 @@ """ MoinMoin - ImprovedTableParser library - @copyright: 2012, 2013, 2015 by Paul Boddie + @copyright: 2012, 2013, 2015, 2020 by Paul Boddie @license: GNU GPL (v2 or later), see COPYING.txt for details. """ @@ -10,7 +10,7 @@ from MoinSupport import * import re -__version__ = "0.2.1" +__version__ = "0.2.2" # Regular expressions. @@ -669,6 +669,12 @@ if column_attrs.has_key("rowcontinuation"): del column_attrs["rowcontinuation"] + # Convert attributes for formatting. + + for key, value in column_attrs.items(): + if isinstance(value, bool): + column_attrs[key] = value and "true" or "false" + write(fmt.table_cell(1, column_attrs)) if sortable_heading: diff -r fbbdfe601473 -r b81620a4d583 PKG-INFO --- a/PKG-INFO Sun Dec 20 00:06:00 2015 +0100 +++ b/PKG-INFO Sun Feb 16 22:37:05 2020 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: ImprovedTableParser -Version: 0.2.1 +Version: 0.2.2 Author: Paul Boddie Author-email: paul at boddie org uk Maintainer: Paul Boddie diff -r fbbdfe601473 -r b81620a4d583 README.txt --- a/README.txt Sun Dec 20 00:06:00 2015 +0100 +++ b/README.txt Sun Feb 16 22:37:05 2020 +0100 @@ -106,6 +106,13 @@ MoinSupport Tested with 0.2 Source: http://hgweb.boddie.org.uk/MoinSupport +New in ImprovedTableParser 0.2.2 (Changes since ImprovedTableParser 0.2.1) +-------------------------------------------------------------------------- + + * Introduced a fix for breakage caused by the attribute processing fix, + where table attributes represented as boolean values would be presented to + the formatter, causing failure in output preparation. + New in ImprovedTableParser 0.2.1 (Changes since ImprovedTableParser 0.2) ------------------------------------------------------------------------ diff -r fbbdfe601473 -r b81620a4d583 setup.py --- a/setup.py Sun Dec 20 00:06:00 2015 +0100 +++ b/setup.py Sun Feb 16 22:37:05 2020 +0100 @@ -8,6 +8,6 @@ author = "Paul Boddie", author_email = "paul@boddie.org.uk", url = "http://moinmo.in/ParserMarket/ImprovedTableParser", - version = "0.2.1", + version = "0.2.2", py_modules = ["ImprovedTableParser"] )